make the fullscreen shader not render upside down

refresh2
cosmonaut 2024-06-06 16:19:14 -07:00
parent 60d2642119
commit 535abec45a
2 changed files with 1 additions and 1 deletions

View File

@ -5,5 +5,5 @@ layout(location = 0) out vec2 outTexCoord;
void main() void main()
{ {
outTexCoord = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2); outTexCoord = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
gl_Position = vec4(outTexCoord * 2.0 - 1.0, 0.0, 1.0); gl_Position = vec4(outTexCoord * vec2(2.0, -2.0) + vec2(-1.0, 1.0), 0.0, 1.0);
} }