From fbb71bca7ef1ab4f67d39cb872d11d076a65365f Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Tue, 16 Sep 2014 00:37:37 +0200 Subject: [PATCH] Revert "Fix negative value inside tonemap" This reverts commit 16dc973faa2e9d6149bb7e6dd6b937ce159e215f. --- data/shaders/tonemap.frag | 2 -- 1 file changed, 2 deletions(-) diff --git a/data/shaders/tonemap.frag b/data/shaders/tonemap.frag index d859bd492..f7b2d54b7 100644 --- a/data/shaders/tonemap.frag +++ b/data/shaders/tonemap.frag @@ -33,8 +33,6 @@ void main() // Uncharted2 tonemap with Auria's custom coefficients vec4 perChannel = (col * (6.9 * col + .5)) / (col * (5.2 * col + 1.7) + 0.06); - // Protect us from negative coefficient just in case... - perChannel = max(perChannel, vec4(0.)); perChannel = pow(perChannel, vec4(2.2)); vec2 inside = uv - 0.5;