ChristianGaerter

Untitled

Mar 8th, 2014
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. #version 330
  2.  
  3. layout (location = 0) in vec3 position;
  4.  
  5. out vec4 color;
  6.  
  7. void main()
  8. {
  9. color = vec4(clamp(position, 0.0, 1.0), 1.0);
  10. gl_Position = vec4(0.25 * position, 1.0);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment