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

summaryrefslogtreecommitdiff
path: root/source/base
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-04-15 08:03:26 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-04-15 08:03:26 +1000
commit227e60ca4c927ed9f6b7db5e5c53c45addd1428b (patch)
tree5a8a080c4d60084bfb864252407cd4fc145926a3 /source/base
parented8b22c472b9159550ade374328092d15b575ade (diff)
new object lighting toggle, log non-master entity render/update exceptions
Diffstat (limited to 'source/base')
-rw-r--r--source/base/StarCellularLightArray.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/base/StarCellularLightArray.cpp b/source/base/StarCellularLightArray.cpp
index 99490ce..49e0917 100644
--- a/source/base/StarCellularLightArray.cpp
+++ b/source/base/StarCellularLightArray.cpp
@@ -67,7 +67,7 @@ void CellularLightArray<ScalarLightTraits>::calculatePointLighting(size_t xmin,
auto newLight = ScalarLightTraits::subtract(light.value, attenuation);
if (ScalarLightTraits::maxIntensity(newLight) > 0.0001f) {
if (light.asSpread)
- setLight(x, y, lvalue + newLight * 0.25f);
+ setLight(x, y, lvalue + newLight * 0.15f);
else
setLight(x, y, lvalue + newLight);
}
@@ -140,7 +140,7 @@ void CellularLightArray<ColoredLightTraits>::calculatePointLighting(size_t xmin,
auto newLight = ColoredLightTraits::subtract(light.value, attenuation);
if (ColoredLightTraits::maxIntensity(newLight) > 0.0001f) {
if (light.asSpread)
- setLight(x, y, lvalue + newLight * 0.25f);
+ setLight(x, y, lvalue + newLight * 0.15f);
else
setLight(x, y, lvalue + newLight);
}