aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/app_settings/shaders/class1/environment/scatterF.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/app_settings/shaders/class1/environment/scatterF.glsl')
-rw-r--r--linden/indra/newview/app_settings/shaders/class1/environment/scatterF.glsl17
1 files changed, 0 insertions, 17 deletions
diff --git a/linden/indra/newview/app_settings/shaders/class1/environment/scatterF.glsl b/linden/indra/newview/app_settings/shaders/class1/environment/scatterF.glsl
deleted file mode 100644
index 3aa44de..0000000
--- a/linden/indra/newview/app_settings/shaders/class1/environment/scatterF.glsl
+++ /dev/null
@@ -1,17 +0,0 @@
1uniform sampler2D scatterMap;
2
3//for per-pixel scatter
4vec4 getScatter(vec3 viewVec, vec3 lightDir)
5{
6 return gl_TexCoord[5];
7}
8
9void applyScatter(inout vec3 color)
10{
11 color = gl_TexCoord[5].a*color + (1.0-gl_TexCoord[5].a) * gl_TexCoord[5].rgb;
12}
13
14void applyScatter(inout vec3 color, vec4 haze)
15{
16 color.rgb = haze.rgb + haze.a * color.rgb;
17}