aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl')
-rw-r--r--linden/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl24
1 files changed, 24 insertions, 0 deletions
diff --git a/linden/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl b/linden/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl
new file mode 100644
index 0000000..92c0664
--- /dev/null
+++ b/linden/indra/newview/app_settings/shaders/class2/windlight/atmosphericsF.glsl
@@ -0,0 +1,24 @@
1/**
2 * @file atmosphericsF.glsl
3 *
4 * Copyright (c) 2007-$CurrentYear$, Linden Research, Inc.
5 * $License$
6 */
7
8//////////////////////////////////////////////////////////
9// The fragment shader for the terrain atmospherics
10//////////////////////////////////////////////////////////
11
12vec3 getAdditiveColor();
13vec3 getAtmosAttenuation();
14
15uniform sampler2D cloudMap;
16uniform vec4 cloud_pos_density1;
17
18vec3 atmosLighting(vec3 light)
19{
20 light *= getAtmosAttenuation().r;
21 light += getAdditiveColor();
22 return (2.0 * light);
23}
24