Space Sim
Loading...
Searching...
No Matches
postprocess.vert
Go to the documentation of this file.
1#version 330 core
2
3out vec2 vUV;
4
5void main()
6{
7 vec2 pos = vec2(
8 (gl_VertexID << 1) & 2,
9 gl_VertexID & 2
10 );
11
12 vUV= pos;
13 gl_Position = vec4(pos * 2.0 - 1.0, 0.0, 1.0);
14}
int main(int argc, char *argv[])
Definition main.c:1726
in vec2 vUV
Definition types.h:45
Definition types.h:47