Added multi triangle support

This commit is contained in:
Pasha Bibko
2025-11-19 22:58:48 +00:00
parent 36fbbefe55
commit d5265d6039
10 changed files with 339 additions and 151 deletions

BIN
shaders/frag.spv Normal file

Binary file not shown.

BIN
shaders/vert.spv Normal file

Binary file not shown.

View File

@@ -1,13 +1,8 @@
#version 450
vec2 positions[3] = vec2[]
(
vec2(0.0, -0.5),
vec2(0.5, 0.5),
vec2(-0.5, 0.5)
);
layout(location = 0) in vec2 inPosition;
void main()
{
gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0);
gl_Position = vec4(inPosition, 0.0, 1.0);
}