mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-11 04:51:13 +00:00
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:
parent
fe1ac50740
commit
bd18250672
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue