Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //VERTEX
- attribute vec2 coord2d;
- void main(void)
- {
- gl_Position = vec4(coord2d, 0.0, 1.0);
- }
- //FRAGMENT
- void main(void)
- {
- gl_FragColor[0] = gl_FragCoord.x/640.0;
- gl_FragColor[1] = gl_FragCoord.y/480.0;
- gl_FragColor[2] = 0.5;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement