2021-04-10 09:14:16 +00:00
|
|
|
#version 330 core
|
|
|
|
|
|
|
|
out vec2 texCoord;
|
|
|
|
|
|
|
|
void main()
|
|
|
|
{
|
2021-08-31 16:00:36 +00:00
|
|
|
vec2 pos = vec2(gl_VertexID % 2, gl_VertexID / 2) * 4.0 - 1.0;
|
|
|
|
texCoord = pos * 0.5 + 0.5;
|
|
|
|
gl_Position = vec4(pos, 0.0, 1.0);
|
2021-04-10 09:14:16 +00:00
|
|
|
}
|