aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/app_settings/shaders/class1/environment/scatterF.glsl
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/app_settings/shaders/class1/environment/scatterF.glsl
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
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}