mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 23:04:07 +00:00
16 lines
236 B
GLSL
16 lines
236 B
GLSL
#version 450
|
|
|
|
out gl_PerVertex {
|
|
vec4 gl_Position;
|
|
};
|
|
|
|
const vec2 positions[3] = vec2[3](
|
|
vec2(0.0, -0.5),
|
|
vec2(0.5, 0.5),
|
|
vec2(-0.5, 0.5)
|
|
);
|
|
|
|
void main() {
|
|
gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0);
|
|
}
|