diff options
author | Graham Linden <graham@lindenlab.com> | 2019-01-08 15:26:09 -0800 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-01-08 15:26:09 -0800 |
commit | 0931bbbf96b540a8547569b0941c1be810b7c3d4 (patch) | |
tree | 0dc29ae48ff5cac4e9d24ae3db61348198e27d8c /indra/newview/app_settings/shaders | |
parent | 368602fb8168b95a889cadba85242a42c0f53049 (diff) | |
parent | f70ab53530774df73d00215abc51db30e1d542a5 (diff) |
Merge
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/postDeferredGammaCorrect.glsl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/postDeferredGammaCorrect.glsl b/indra/newview/app_settings/shaders/class1/deferred/postDeferredGammaCorrect.glsl index 0b943d2527..cbc19bbba3 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/postDeferredGammaCorrect.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/postDeferredGammaCorrect.glsl @@ -40,10 +40,12 @@ VARYING vec2 vary_fragcoord; uniform float display_gamma; +vec3 linear_to_srgb(vec3 cl); + void main() { - vec4 diff = texture2DRect(diffuseRect, vary_fragcoord); - diff.rgb = pow(diff.rgb, vec3(display_gamma)); - frag_color = diff; + vec4 diff = texture2DRect(diffuseRect, vary_fragcoord); + diff.rgb = linear_to_srgb(diff.rgb); + frag_color = diff; } |