Skip to content

Commit

Permalink
Revert "Some color are negative, clamp them in loglum"
Browse files Browse the repository at this point in the history
This reverts commit 43df357.
  • Loading branch information
Vincent Lejeune committed Apr 22, 2014
1 parent 17ba0f5 commit 6f16831
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions data/shaders/logluminance.frag
Expand Up @@ -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));
}

0 comments on commit 6f16831

Please sign in to comment.