mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 14:51:51 +00:00
- 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:
parent
f49794d6c6
commit
4229389680
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue