Simplified fullscreen triangle shader
This commit is contained in:
parent
f432393f3c
commit
0f9077aae6
2 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue