summaryrefslogtreecommitdiff
path: root/examples/live/shaders/fullscreen.vert
blob: f45ee09950eeb7fb5714bfa63d0b2e7e697d7b43 (plain) (blame)
1
2
3
4
5
6
#version 450
// One triangle covering the target.
void main() {
    vec2 p = vec2(float((gl_VertexIndex << 1) & 2), float(gl_VertexIndex & 2));
    gl_Position = vec4(p * 2.0 - 1.0, 0.0, 1.0);
}