mirror of
https://github.com/ZiZc3/VLC.git
synced 2026-10-23 22:02:10 +02:00
11 lines
268 B
GLSL
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);
|
|
}
|