Advertisement
Shadowfury333

Vertex Shader

Jun 27th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #version 330 core
  2.  
  3. in vec4 in_Position;
  4. in vec4 in_Colour;
  5. out vec4 ex_Colour;
  6.  
  7. uniform mat4 model_matrix;
  8. uniform mat4 view_matrix;
  9. uniform mat4 proj_matrix;
  10.  
  11. void main(){
  12. gl_Position = (proj_matrix * view_matrix * model_matrix) * in_Position;
  13. ex_Colour = in_Colour;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement