Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 202 Bytes
uniform vec4 surfacecolor;
void main (void)
{
float v = 2.0 * gl_TexCoord[0].y;
v = 1.01 - abs(1.0 - v); // Some cards have a rounding error
gl_FragColor = vec4(v,v,v, 1.0) * surfacecolor;
}