Advertisement
Guest User

Untitled

a guest
Aug 9th, 2016
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 120
  2.  
  3. uniform mat4 model;
  4. uniform vec3 background;
  5.  
  6. attribute vec2 position;
  7. attribute float color;
  8. varying vec3 vertex_color;
  9.  
  10. void main()
  11. {
  12.     vertex_color = background + color;
  13.     gl_Position = model * vec4(position, 0.0, 1.0);
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement