- added a new light mode that emulates Build's depth fading.

Not active yet, this needs some testing and finetuning.
This commit is contained in:
Christoph Oelckers 2020-06-08 20:58:35 +02:00
commit 5896f24eba
5 changed files with 26 additions and 5 deletions

View file

@ -314,12 +314,22 @@ public:
bool isSoftwareLighting() const
{
return lightmode >= ELightMode::ZDoomSoftware;
return lightmode == ELightMode::ZDoomSoftware || lightmode == ELightMode::DoomSoftware || lightmode == ELightMode::Build;
}
bool isBuildSoftwareLighting() const
{
return lightmode == ELightMode::Build;
}
bool isDoomSoftwareLighting() const
{
return lightmode == ELightMode::ZDoomSoftware || lightmode == ELightMode::DoomSoftware;
}
bool isDarkLightMode() const
{
return !!((int)lightmode & (int)ELightMode::Doom);
return lightmode == ELightMode::Doom || lightmode == ELightMode::DoomDark;
}
void SetFallbackLightMode()