Actually, if anyone can provide the formulas GZDoom uses to calculate brightness in various
lightmodes, I could add support for this stuff in all modes + read the mode from "LightMode" MAPINFO property + add a "Light mode" selector somewhere in the preferences. GZDB already supports "Standard" ("doomlightlevels = false" in a game configuration) and "Doom" ("doomlightlevels = true") light modes, so I need the formulas only for "Bright", "Dark" and "Legacy" ones.
Also, if anyone's interested, in DB2 and GZDB "Doom" light level is calculated like so:
Code: Select all
// "level" is surface brightness
if((level < 192) && General.Map.Config.DoomLightLevels)
flevel = (192.0f - (192 - level) * 1.5f);
and "Standard" just uses a surface's brightness without modifying it.