forked from MoonsideGames/MoonWorks
10 lines
198 B
GLSL
10 lines
198 B
GLSL
|
#version 450
|
||
|
|
||
|
layout(location = 0) out vec2 outTexCoord;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
outTexCoord = vec2((gl_VertexIndex << 1) & 2, gl_VertexIndex & 2);
|
||
|
gl_Position = vec4(outTexCoord * 2.0 - 1.0, 0.0, 1.0);
|
||
|
}
|