Untitled
Loading...
Searching...
No Matches
fullscreen.vert
Go to the documentation of this file.
1
2#version 330 core
3
4out vec2 uv;
5
6void main()
7{
8 vec2 pos = vec2(
9 (gl_VertexID << 1) & 2,
10 gl_VertexID & 2
11 );
12
13 uv = pos;
14 gl_Position = vec4(pos * 2.0 - 1.0, 0.0, 1.0);
15}
void main()
in vec2 uv
Definition types.h:11
Definition types.h:13