Files
Triforce-Source/gpu/vk/shaders/clear.vert
ruckus7382sfgsgdf 34b3683441 Triforce v0.2.0
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 19:32:48 -06:00

7 lines
214 B
GLSL

#version 450
// A triangle over the whole target (vk_draw.cpp masked clears)
void main() {
const vec2 p = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
gl_Position = vec4(p * 2.0 - 1.0, 0.0, 1.0);
}