summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings
diff options
context:
space:
mode:
authorGeenz <geenz@geenzo.com>2013-04-18 21:05:16 -0400
committerGeenz <geenz@geenzo.com>2013-04-18 21:05:16 -0400
commit14b807e55efcfb8a9b52909fd554c9ba1cea0f36 (patch)
tree584f1d57175051119f651b825afbe08be823b6ce /indra/newview/app_settings
parent15bf1a81d1fef78961e5a220324b91aa3a3f565a (diff)
Don't apply gamma correction underwater (for now).
Diffstat (limited to 'indra/newview/app_settings')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/postDeferredGammaCorrect.glsl4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/postDeferredGammaCorrect.glsl b/indra/newview/app_settings/shaders/class1/deferred/postDeferredGammaCorrect.glsl
index 404e284abb..2d6bce02c9 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/postDeferredGammaCorrect.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/postDeferredGammaCorrect.glsl
@@ -36,9 +36,11 @@ uniform sampler2DRect diffuseRect;
uniform vec2 screen_res;
VARYING vec2 vary_fragcoord;
+uniform float texture_gamma;
+
void main()
{
vec4 diff = texture2DRect(diffuseRect, vary_fragcoord);
- frag_color = pow(diff, vec4(0.454545, 0.454545, 0.454545, 1.0));
+ frag_color = pow(diff, vec4(texture_gamma, texture_gamma, texture_gamma, 1.0));
}