Advertisement
Guest User

Untitled

a guest
Jan 25th, 2013
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. //VERTEX
  2. attribute vec2 coord2d;
  3. void main(void)
  4. {
  5.   gl_Position = vec4(coord2d, 0.0, 1.0);
  6. }
  7.  
  8. //FRAGMENT
  9. void main(void)
  10. {
  11.   gl_FragColor[0] = gl_FragCoord.x/640.0;
  12.   gl_FragColor[1] = gl_FragCoord.y/480.0;
  13.   gl_FragColor[2] = 0.5;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement