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/class2/lighting/lightWaterF.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/class2/lighting/lightWaterF.glsl')
-rw-r--r-- | linden/indra/newview/app_settings/shaders/class2/lighting/lightWaterF.glsl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/linden/indra/newview/app_settings/shaders/class2/lighting/lightWaterF.glsl b/linden/indra/newview/app_settings/shaders/class2/lighting/lightWaterF.glsl new file mode 100644 index 0000000..086954c --- /dev/null +++ b/linden/indra/newview/app_settings/shaders/class2/lighting/lightWaterF.glsl | |||
@@ -0,0 +1,21 @@ | |||
1 | /** | ||
2 | * @file lightWaterF.glsl | ||
3 | * | ||
4 | * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc. | ||
5 | * $License$ | ||
6 | */ | ||
7 | |||
8 | uniform sampler2D diffuseMap; | ||
9 | |||
10 | vec3 atmosLighting(vec3 light); | ||
11 | vec4 applyWaterFog(vec4 color); | ||
12 | |||
13 | void default_lighting_water() | ||
14 | { | ||
15 | vec4 color = texture2D(diffuseMap, gl_TexCoord[0].xy) * gl_Color; | ||
16 | |||
17 | color.rgb = atmosLighting(color.rgb); | ||
18 | |||
19 | gl_FragColor = applyWaterFog(color); | ||
20 | } | ||
21 | |||