Simplified fullscreen triangle shader

This commit is contained in:
saschawillems 2016-08-13 23:56:57 +02:00
parent 299f5b2bae
commit f432393f3c
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 * vec2(2.0f, 2.0f) + vec2(-1.0f, -1.0f), 0.0f, 1.0f);
gl_Position = vec4(outUV * 2.0f + -1.0f, 0.0f, 1.0f);
}