- change per-level attenuation of dynamic lights for each viewpoint.

To avoid unnecessary work, the current state is tracked.
This commit is contained in:
Christoph Oelckers 2019-01-29 20:09:06 +01:00
commit 4af5ea25c1
5 changed files with 16 additions and 7 deletions

View file

@ -76,7 +76,7 @@ public:
void SetSpot(bool spot) { if (spot) m_lightFlags |= LF_SPOT; else m_lightFlags &= ~LF_SPOT; }
void SetSpotInnerAngle(double angle) { m_spotInnerAngle = angle; }
void SetSpotOuterAngle(double angle) { m_spotOuterAngle = angle; }
static void SetAttenuationForLevel();
static void SetAttenuationForLevel(bool);
void OrderIntensities()
{