aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/app_settings/shaders/class3/environment/groundF.glsl
blob: 8618dad623dcd7fd9d4a7362c66bf7c3aaee982e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
vec4 getScatter(vec3 viewVec, vec3 lightDir);

varying vec3 lightd;
varying vec3 viewVec;

void main() 
{
   vec4 color = gl_Color;
   vec4 haze = getScatter(viewVec, lightd) * vec4(gl_Fog.color.rgb, 1.0);
   color.rgb = haze.rgb + haze.a * color.rgb;
   gl_FragColor = color;
}