#version 450 const vec2 vertices[] = { vec2(-1.0f, 3.0f), vec2(-1.0f, -1.0f), vec2(3.0f, -1.0f) }; void main() { gl_Position = vec4(vertices[gl_VertexIndex % 3], 0.0f, 1.0f); }