File: fragment.glsl

package info (click to toggle)
libopengl-perl 0.7000%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,308 kB
  • sloc: perl: 10,178; ansic: 8,576; makefile: 113
file content (8 lines) | stat: -rwxr-xr-x 202 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
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;
}