new-engine/shaders/shader.vert
Warwick 86d57ade14 Initial SDL window test.
As an aside if you're on debian stable rn you will need sdl2 libs from
the testing branch.
2024-02-06 14:51:43 +00:00

11 lines
182 B
GLSL

#version 450
vec2 positions[3] = vec2[] (
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);
}