easy-osm2city-podman/full/fgdata/Shaders/HDR/quad.vert

11 lines
193 B
GLSL
Raw Permalink Normal View History

#version 330 core
out vec2 texcoord;
void main()
{
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);
}