
Untitled
By: a guest on
Jan 25th, 2013 | syntax:
C | size: 0.24 KB | hits: 23 | expires: Never
//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;
}