Advertisement
Nightdra

model_loading.vs

Jul 14th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #version 330 core
  2. layout (location = 0) in vec3 aPos;
  3. layout (location = 1) in vec3 aNormal;
  4. layout (location = 2) in vec2 aTexCoords;
  5.  
  6. out vec2 TexCoords;
  7.  
  8. uniform mat4 model;
  9. uniform mat4 view;
  10. uniform mat4 projection;
  11.  
  12. void main()
  13. {
  14.     TexCoords = aTexCoords;
  15.     gl_Position = projection * view * model * vec4(aPos, 1.0);
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement