#version 450 // One triangle over the whole eye image (the smooth-foveation pass). void main() { const vec2 p = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2); gl_Position = vec4(p * 2.0 - 1.0, 0.0, 1.0); }