mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-19 22:11:01 +01:00
11 lines
191 B
GLSL
11 lines
191 B
GLSL
#version 450
|
|
|
|
out gl_PerVertex {
|
|
vec4 gl_Position;
|
|
};
|
|
|
|
void main() {
|
|
vec2 position = vec2(gl_VertexIndex, (gl_VertexIndex & 1) * 2) - 1;
|
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
}
|