Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 450 core
- out vec2 TexCoord;
- void main()
- {
- gl_Position.x = (float) (gl_VertexID / 2) * 4.0 -1.0;
- gl_Position.y = (float) (gl_VertexID % 2) * 4.0 -1.0;
- gl_Position.z = 0.0;
- gl_Position.w = 1.0;
- TexCoord.x = (float)(gl_VertexID / 2) * 2.0;
- TexCoord.y = 1.0 - (float)(gl_VertexID % 2) * 2.0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement