Advertisement
Guest User

Untitled

a guest
Nov 13th, 2015
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 430
  2.  
  3. uniform var1 {
  4.     float v1;
  5. };
  6. uniform var2 {
  7.     float v2;
  8. };
  9. uniform var3 {
  10.     float v3;
  11. };
  12. uniform var4 {
  13.     float v4;
  14. };
  15. uniform var5 {
  16.     float v5;
  17. };
  18.  
  19. uniform mat4 CameraMatrix;
  20. uniform mat4 ProjectionMatrix;
  21. uniform mat4 ModelMatrix;
  22.  
  23. layout(location = 0) in vec3 vertex;
  24.  
  25. void main()
  26. {
  27.     gl_Position = ProjectionMatrix * CameraMatrix * ModelMatrix * vec4(vertex, 1.0) * (v1+v2+v3+v4+v5);
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement