diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-06-28 17:10:17 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-06-28 17:10:17 +1000 |
commit | 54ac208dd5a54c827567a3a86e152680ae7663ea (patch) | |
tree | 86218292795659a558f5ae65a712f1e6ed0e33ea /source/base/StarCellularLightArray.hpp | |
parent | bb5387fbdb90ec5e3b387ed73718b281b207252b (diff) |
lighting: disable the new additive point light behavior when new lighting is off
Diffstat (limited to 'source/base/StarCellularLightArray.hpp')
-rw-r--r-- | source/base/StarCellularLightArray.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/base/StarCellularLightArray.hpp b/source/base/StarCellularLightArray.hpp index 587ae1f..4b7e654 100644 --- a/source/base/StarCellularLightArray.hpp +++ b/source/base/StarCellularLightArray.hpp @@ -60,7 +60,7 @@ public: }; void setParameters(unsigned spreadPasses, float spreadMaxAir, float spreadMaxObstacle, - float pointMaxAir, float pointMaxObstacle, float pointObstacleBoost); + float pointMaxAir, float pointMaxObstacle, float pointObstacleBoost, bool pointAdditive); // The border around the target lighting array where initial lighting / light // source data is required. Based on parameters. @@ -129,6 +129,7 @@ private: float m_pointMaxAir; float m_pointMaxObstacle; float m_pointObstacleBoost; + bool m_pointAdditive; }; typedef CellularLightArray<ColoredLightTraits> ColoredCellularLightArray; @@ -204,13 +205,14 @@ inline Vec3F ColoredLightTraits::max(Vec3F const& v1, Vec3F const& v2) { template <typename LightTraits> void CellularLightArray<LightTraits>::setParameters(unsigned spreadPasses, float spreadMaxAir, float spreadMaxObstacle, - float pointMaxAir, float pointMaxObstacle, float pointObstacleBoost) { + float pointMaxAir, float pointMaxObstacle, float pointObstacleBoost, bool pointAdditive) { m_spreadPasses = spreadPasses; m_spreadMaxAir = spreadMaxAir; m_spreadMaxObstacle = spreadMaxObstacle; m_pointMaxAir = pointMaxAir; m_pointMaxObstacle = pointMaxObstacle; m_pointObstacleBoost = pointObstacleBoost; + m_pointAdditive = pointAdditive; } template <typename LightTraits> |