aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/app_settings/shaders/class2/lighting/lightWaterF.glsl
diff options
context:
space:
mode:
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