Revert "- eliminate an unexpected slow path in the fragment shader."

This reverts commit cd5aa65fda.

This does not work as expected, needs more investigation.
This commit is contained in:
Christoph Oelckers 2021-08-09 20:31:21 +02:00
parent cd5aa65fda
commit 39513cf7ae

View file

@ -595,7 +595,7 @@ vec4 getLightColor(Material material, float fogdist, float fogfactor)
{
vec4 color = vColor;
if ((uPalLightLevels >> 16) >= 5) // gl_lightmode >= 5 are software lighting modes.
if (uLightLevel >= 0.0)
{
float newlightlevel = 1.0 - R_DoomLightingEquation(uLightLevel);
color.rgb *= newlightlevel;