Revert "- prevent excessively bright pixels as this is actually visible on a HDR monitor"

This reverts commit 56d788f237181e04354042de4596135fd2fda193.

It caused graphics glitches with the partial invisibility effect.
This commit is contained in:
drfrag 2020-11-23 19:56:55 +01:00
parent fe1ac50740
commit bd18250672

View file

@ -14,8 +14,6 @@ uniform int HdrMode;
vec4 ApplyGamma(vec4 c) vec4 ApplyGamma(vec4 c)
{ {
c.rgb = min(c.rgb, vec3(2.0)); // for HDR mode - prevents stacked translucent sprites (such as plasma) producing way too bright light
vec3 valgray; vec3 valgray;
if (GrayFormula == 0) if (GrayFormula == 0)
valgray = vec3(c.r + c.g + c.b) * (1 - Saturation) / 3 + c.rgb * Saturation; valgray = vec3(c.r + c.g + c.b) * (1 - Saturation) / 3 + c.rgb * Saturation;