- added a 'nolightfade' MAPINFO option which disables light diminishing in OpenGL. Note that this only works for light modes 0-3. Modes 4 and 8 use special light math that would not work if such a setting was forced.

This commit is contained in:
Christoph Oelckers 2017-02-13 22:17:15 +01:00
commit cb758f6dab
3 changed files with 21 additions and 1 deletions

View file

@ -312,7 +312,7 @@ float gl_GetFogDensity(int lightlevel, PalEntry fogcolor, int sectorfogdensity)
else if ((fogcolor.d & 0xffffff) == 0)
{
// case 2: black fog
if (glset.lightmode != 8)
if (glset.lightmode != 8 && !glset.nolightfade)
{
density = distfogtable[glset.lightmode != 0][gl_ClampLight(lightlevel)];
}