Advertisement
hundw456fzg

primitive.vert

Nov 2nd, 2021
5,046
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 Position;
  4. layout (location = 1) in vec2 TexCoord;
  5. layout (location = 2) in vec3 Normal;
  6.  
  7. out VS_OUTPUT {
  8.     vec2 TexCoord;
  9. } OUT;
  10.  
  11. uniform mat4 projMtx;
  12. uniform mat4 mdlvMtx;
  13.  
  14. void main()
  15. {
  16.     vec4 pos = mdlvMtx * vec4(Position, 1.0);
  17.     gl_Position = projMtx * pos;
  18.     OUT.TexCoord = TexCoord;
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement