Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/base/StarCellularLighting.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-03-27 16:07:17 +1100
committerKae <80987908+Novaenia@users.noreply.github.com>2024-03-27 16:07:17 +1100
commitf08ffe2162f9c3298f04174de7303bcbcdaf2a01 (patch)
tree2a13b67ffdeef540dcbd387b6848b561728ef466 /source/base/StarCellularLighting.cpp
parentb50244ade5415f9f84db9d54995faacffe6fd691 (diff)
parent888cde79ef8f6d1b008e86207b41e1fd686c7636 (diff)
Merge branch 'light-test'
Diffstat (limited to 'source/base/StarCellularLighting.cpp')
-rw-r--r--source/base/StarCellularLighting.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/base/StarCellularLighting.cpp b/source/base/StarCellularLighting.cpp
index 579f48a..3e5cf9a 100644
--- a/source/base/StarCellularLighting.cpp
+++ b/source/base/StarCellularLighting.cpp
@@ -109,12 +109,12 @@ void CellularLightingCalculator::addSpreadLight(Vec2F const& position, Vec3F con
m_lightArray.left().addSpreadLight({arrayPosition, light});
}
-void CellularLightingCalculator::addPointLight(Vec2F const& position, Vec3F const& light, float beam, float beamAngle, float beamAmbience) {
+void CellularLightingCalculator::addPointLight(Vec2F const& position, Vec3F const& light, float beam, float beamAngle, float beamAmbience, bool asSpread) {
Vec2F arrayPosition = position - Vec2F(m_calculationRegion.min());
if (m_monochrome)
- m_lightArray.right().addPointLight({arrayPosition, light.max(), beam, beamAngle, beamAmbience});
+ m_lightArray.right().addPointLight({arrayPosition, light.max(), beam, beamAngle, beamAmbience, asSpread});
else
- m_lightArray.left().addPointLight({arrayPosition, light, beam, beamAngle, beamAmbience});
+ m_lightArray.left().addPointLight({arrayPosition, light, beam, beamAngle, beamAmbience, asSpread});
}
void CellularLightingCalculator::calculate(Image& output) {