aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/app_settings/shaders/class2/lighting/lightWaterF.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/class2/lighting/lightWaterF.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/class2/lighting/lightWaterF.glsl')
-rw-r--r--linden/indra/newview/app_settings/shaders/class2/lighting/lightWaterF.glsl21
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
8uniform sampler2D diffuseMap;
9
10vec3 atmosLighting(vec3 light);
11vec4 applyWaterFog(vec4 color);
12
13void 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