Advertisement
Lavadrgon15396

position_tex_color.vsh

Mar 15th, 2023
802
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 150
  2.  
  3. in vec3 Position;
  4. in vec2 UV0;
  5. in vec4 Color;
  6.  
  7. uniform mat4 ModelViewMat;
  8. uniform mat4 ProjMat;
  9.  
  10. out vec2 texCoord0;
  11. out vec4 vertexColor;
  12. out vec4 Pos;
  13.  
  14. void main() {
  15.     gl_Position = ProjMat * ModelViewMat * vec4(Position, 1.0);
  16.  
  17.     Pos = ModelViewMat * vec4(1);
  18.  
  19.     texCoord0 = UV0;
  20.     vertexColor = Color;
  21. }
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement