RoshHoul

shader.vs

Mar 29th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #version 330 core
  2. layout (location = 0) in vec3 position;
  3. layout (location = 2) in vec2 texCoord;
  4.  
  5. out vec2 TexCoord;
  6.  
  7. uniform mat4 model;
  8. uniform mat4 view;
  9. uniform mat4 projection;
  10.  
  11. void main()
  12. {
  13. gl_Position = projection * view * model * vec4(position, 1.0f);
  14. TexCoord = texCoord;
  15. }
Add Comment
Please, Sign In to add comment