summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2013-01-11 18:52:27 -0500
committerOz Linden <oz@lindenlab.com>2013-01-11 18:52:27 -0500
commit7d56fb04dfdf47768e2e81ec80d15737370af271 (patch)
tree29a9188f7ad87c687afca4f26f6f75649f19a5f4 /indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl
parent597b374f382946b95d556af82cad612124b3211a (diff)
parentde0863ed6e91fda0c1b5342b9fecf07c4af47d63 (diff)
merge gamma correction rendering
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl b/indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl
index eb5beeef39..c891c4e445 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/postDeferredNoDoFF.glsl
@@ -35,12 +35,13 @@ uniform sampler2DRect diffuseRect;
uniform sampler2D bloomMap;
uniform vec2 screen_res;
+uniform float global_gamma;
VARYING vec2 vary_fragcoord;
void main()
{
vec4 diff = texture2DRect(diffuseRect, vary_fragcoord.xy);
-
+ diff.rgb = pow(diff.rgb, vec3(1.0/global_gamma));
vec4 bloom = texture2D(bloomMap, vary_fragcoord.xy/screen_res);
frag_color = diff + bloom;
}