source:
GTP/trunk/Lib/Illum/GPUObscurancesGT/src/transfer.frag
@
930
Revision 930, 293 bytes checked in by igarcia, 18 years ago (diff) |
---|
Line | |
---|---|
1 | uniform sampler2D reflectivity; |
2 | uniform float dmax; |
3 | |
4 | varying vec2 p1; |
5 | varying vec2 p2; |
6 | varying float factor; |
7 | |
8 | void 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.