- fixed: banded sw light was broken in a recent commit. Added back the 32 light levels and also made it prefer darker shades.

This commit is contained in:
Rachael Alexanderson 2017-06-21 19:10:39 -04:00
parent f49794d6c6
commit 4229389680

View file

@ -120,7 +120,7 @@ float R_DoomLightingEquation(float light)
float shade = 2.0 - (L + 12.0) / 128.0;
float lightscale;
if (uPalLightLevels != 0)
lightscale = float(int(shade - vis));
lightscale = float(-int(-(shade - vis) * 32.0)) / 32.0;
else
lightscale = shade - vis;