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