Advertisement
Guest User

vertexShader

a guest
Feb 10th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 330 core
  2.  
  3. layout(location = 0) in vec3 vertexPosition_modelspace;
  4. layout(location = 1) in vec2 vertexUV;
  5.  
  6. out vec2 UV;
  7.  
  8. void main()
  9. {
  10.     gl_Position.xyz = vertexPosition_modelspace;
  11.     gl_Position.w = 1.0;
  12.  
  13.     UV = vertexUV;
  14.  }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement