Crafter.Build/tests/ShaderDep/inner/lib/triangle.glsl
Jorijn van der Graaf de9865b583
All checks were successful
CI / build-test-release (push) Successful in 15m1s
shader copy to output
2026-05-01 19:16:13 +02:00

13 lines
278 B
GLSL

#version 450
layout(location = 0) out vec3 color;
void main() {
vec2 positions[3] = vec2[](
vec2( 0.0, -0.5),
vec2( 0.5, 0.5),
vec2(-0.5, 0.5)
);
gl_Position = vec4(positions[gl_VertexIndex], 0.0, 1.0);
color = vec3(1.0, 0.0, 0.0);
}