Advertisement
Guest User

simple.vert

a guest
Aug 3rd, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #version 330 core
  2.  
  3. layout(location=0) in vec3 position;
  4.  
  5. uniform mat4 CtC; //camera to clip
  6. uniform mat4 WtC; //world to camera
  7. uniform mat4 OtW; //object to world
  8.  
  9. void main()
  10. {
  11. vec4 temp = OtW * vec4(position,1);
  12. temp = WtC * temp;
  13. gl_Position = CtC * temp;
  14.  
  15. //gl_Position = CtC * WtC * OtW * vec4(position,1);
  16.  
  17. //gl_Position = OtW * vec4(position,1);
  18. //gl_Position = vec4(position,1);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement