source: GTP/trunk/Lib/Illum/GPUObscurancesGT/bin/debug/transfer.frag @ 930

Revision 930, 293 bytes checked in by igarcia, 19 years ago (diff)
Line 
1uniform sampler2D reflectivity;
2uniform float dmax;
3
4varying vec2 p1;
5varying vec2 p2;
6varying float factor;
7
8void main()
9
10{
11        if(factor>=dmax) gl_FragColor.rgb = vec3(0.5,0.5,0.5);
12        else gl_FragColor.rgb = tex2D(reflectivity,p2).rgb * sqrt(factor/dmax);
13        gl_FragColor.a = 1.0;
14}
Note: See TracBrowser for help on using the repository browser.