Added multi triangle support

This commit is contained in:
Pasha Bibko committed 2025-11-19 23:00:51 +00:00
1 parent 36fbbefe55
commit ff7f3e86ee
9 files changed
+341 -151

No files matched your search

+2 -7
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);
}