Files
2026-10-10 23:44:10 +01:00

11 lines
268 B
GLSL

#version 450
// One triangle over the whole target (the UI layer composited in HDR mode).
layout(location = 0) out vec2 uv;
void main()
{
vec2 p = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
uv = p;
gl_Position = vec4(p * 2.0 - 1.0, 0.0, 1.0);
}