From 54ac208dd5a54c827567a3a86e152680ae7663ea Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 28 Jun 2024 17:10:17 +1000 Subject: lighting: disable the new additive point light behavior when new lighting is off --- source/base/StarCellularLightArray.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source/base/StarCellularLightArray.hpp') 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 ColoredCellularLightArray; @@ -204,13 +205,14 @@ inline Vec3F ColoredLightTraits::max(Vec3F const& v1, Vec3F const& v2) { template void CellularLightArray::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 -- cgit v1.2.3