mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-19 16:20:01 -04:00
7 lines
214 B
GLSL
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);
|
|
}
|