diff options
author | Geenz <geenz@geenzo.com> | 2013-04-18 21:05:16 -0400 |
---|---|---|
committer | Geenz <geenz@geenzo.com> | 2013-04-18 21:05:16 -0400 |
commit | 14b807e55efcfb8a9b52909fd554c9ba1cea0f36 (patch) | |
tree | 584f1d57175051119f651b825afbe08be823b6ce /indra/newview/app_settings | |
parent | 15bf1a81d1fef78961e5a220324b91aa3a3f565a (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.glsl | 4 |
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)); } |