1 2 3 4 5
void main() { vec2 vertices[3]=vec2[3](vec2(-1,-1),vec2(3,-1),vec2(-1, 3)); gl_Position = vec4(vertices[gl_VertexID],0,1); }