Simplified fullscreen triangle shader

This commit is contained in:
saschawillems 2016-08-13 23:57:40 +02:00
parent f432393f3c
commit 0f9077aae6
2 changed files with 1 additions and 1 deletions

View file

@ -13,5 +13,5 @@ out gl_PerVertex
void main()
{
outUV = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
gl_Position = vec4(outUV * 2.0f + -1.0f, 0.0f, 1.0f);
gl_Position = vec4(outUV * 2.0f - 1.0f, 0.0f, 1.0f);
}