Simplified fullscreen triangle shader
This commit is contained in:
parent
299f5b2bae
commit
f432393f3c
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 * 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);
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue