Guest User

vertex.glsl

a guest
Jul 21st, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // vertex.glsl
  2. #version 400
  3.  
  4. in vec3 vp;
  5.  
  6. out vec4 texcoord;
  7.  
  8. void main()
  9. {
  10.     gl_Position = vec4(vp, 1.0);
  11.     texcoord = (vec4(vp, 1.0) + 1.0) / 2.0;
  12.     texcoord.y = 1.0 - texcoord.y;
  13. }
Add Comment
Please, Sign In to add comment