aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/app_settings/shaders/class3/environment/groundF.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/app_settings/shaders/class3/environment/groundF.glsl')
-rw-r--r--linden/indra/newview/app_settings/shaders/class3/environment/groundF.glsl12
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/newview/app_settings/shaders/class3/environment/groundF.glsl b/linden/indra/newview/app_settings/shaders/class3/environment/groundF.glsl
new file mode 100644
index 0000000..8618dad
--- /dev/null
+++ b/linden/indra/newview/app_settings/shaders/class3/environment/groundF.glsl
@@ -0,0 +1,12 @@
1vec4 getScatter(vec3 viewVec, vec3 lightDir);
2
3varying vec3 lightd;
4varying vec3 viewVec;
5
6void main()
7{
8 vec4 color = gl_Color;
9 vec4 haze = getScatter(viewVec, lightd) * vec4(gl_Fog.color.rgb, 1.0);
10 color.rgb = haze.rgb + haze.a * color.rgb;
11 gl_FragColor = color;
12}