diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/app_settings/shaders/class1/environment/scatterF.glsl | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-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.glsl | 17 |
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 @@ | |||
1 | uniform sampler2D scatterMap; | ||
2 | |||
3 | //for per-pixel scatter | ||
4 | vec4 getScatter(vec3 viewVec, vec3 lightDir) | ||
5 | { | ||
6 | return gl_TexCoord[5]; | ||
7 | } | ||
8 | |||
9 | void applyScatter(inout vec3 color) | ||
10 | { | ||
11 | color = gl_TexCoord[5].a*color + (1.0-gl_TexCoord[5].a) * gl_TexCoord[5].rgb; | ||
12 | } | ||
13 | |||
14 | void applyScatter(inout vec3 color, vec4 haze) | ||
15 | { | ||
16 | color.rgb = haze.rgb + haze.a * color.rgb; | ||
17 | } | ||