Revert "Some color are negative, clamp them in loglum"
This reverts commit 43df357cfb
.
This commit is contained in:
parent
17ba0f515c
commit
6f16831d00
@ -9,7 +9,6 @@ void main()
|
|||||||
{
|
{
|
||||||
vec3 weight = vec3(0.2125f, 0.7154f, 0.0721f);
|
vec3 weight = vec3(0.2125f, 0.7154f, 0.0721f);
|
||||||
vec3 col = texture(tex, uv).xyz;
|
vec3 col = texture(tex, uv).xyz;
|
||||||
// TODO: Investigate why color buffer has negative value sometimes
|
float luma = dot(col, weight);
|
||||||
float luma = max(dot(col, weight), 0.);
|
|
||||||
FragColor = vec4(log(luma + delta));
|
FragColor = vec4(log(luma + delta));
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user