From 6f16831d008cdc222f0e8f058faa1c96efa252ad Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Tue, 22 Apr 2014 18:18:18 +0200 Subject: [PATCH] Revert "Some color are negative, clamp them in loglum" This reverts commit 43df357cfbdba74b2e1d6e7b5b79fabc2377a6b4. --- data/shaders/logluminance.frag | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/data/shaders/logluminance.frag b/data/shaders/logluminance.frag index 309bbde40..10f3d4000 100644 --- a/data/shaders/logluminance.frag +++ b/data/shaders/logluminance.frag @@ -9,7 +9,6 @@ void main() { vec3 weight = vec3(0.2125f, 0.7154f, 0.0721f); vec3 col = texture(tex, uv).xyz; - // TODO: Investigate why color buffer has negative value sometimes - float luma = max(dot(col, weight), 0.); + float luma = dot(col, weight); FragColor = vec4(log(luma + delta)); } \ No newline at end of file