#version 450 void main() { float x = gl_VertexIndex - 1; float y = (gl_VertexIndex & 1) * 2 - 1; gl_Position = vec4(x * 0.5, y * 0.5, 0., 1.0); }