summaryrefslogtreecommitdiffstats
path: root/gfx/wgpu/player/tests/data/quad.vert
blob: e8dbb80ba6e003001c3ca42778534b350a6bd459 (plain)
1
2
3
4
5
6
7
8
9
10
#version 450

out gl_PerVertex {
    vec4 gl_Position;
};

void main() {
    vec2 pos = vec2(gl_VertexIndex == 2 ? 3.0 : -1.0, gl_VertexIndex == 1 ? 3.0 : -1.0);
    gl_Position = vec4(pos, 0.0, 1.0);
}