Added the following GL Light flags:

- `DontLightOthers`: Acts as the inverse of `DontLightSelf`, where it won't light actors that aren't the owner.
- `DontLightMap`: The light doesn't affect the map.
This commit is contained in:
Major Cooke 2020-12-17 11:44:59 -06:00 committed by Christoph Oelckers
commit 31fa78d7c9
4 changed files with 52 additions and 4 deletions

View file

@ -161,7 +161,7 @@ void HWFlat::SetupLights(HWDrawInfo *di, FLightNode * node, FDynLightData &light
{
FDynamicLight * light = node->lightsource;
if (!light->IsActive())
if (!light->IsActive() || light->DontLightMap())
{
node = node->nextLight;
continue;