2024-08-12 15:10:31 +00:00
|
|
|
//version 130
|
2023-09-10 15:10:49 +00:00
|
|
|
|
|
|
|
uniform vec2 iResolution; // viewport resolution (in pixels)
|
|
|
|
out vec2 texCoord;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
texCoord = vec2( (gl_VertexID << 1) & 2, gl_VertexID & 2 );
|
|
|
|
gl_Position = vec4( texCoord * 2.0 - 1.0, 0.0, 1.0 );
|
|
|
|
texCoord = texCoord * iResolution;
|
|
|
|
}
|