v0.4.7: lampen niet meer door muren, buiten overdag gedimd, binnenspots feller

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Machiel
2026-09-30 12:47:08 +02:00
co-authored by Claude Opus 5.5
parent 5ecf3e0c2a
commit 448c2b1289
4 changed files with 60 additions and 21 deletions
+3 -1
View File
@@ -336,7 +336,9 @@ function mountHouseEditor(container, callbacks) {
if (parts && parts.lightingGroup) parts.lightingGroup.traverse(o => { if (o.userData.beam) o.visible = !lampsOn; });
if (lampsOn && parts && lampenVisible) {
const edge = dakVisible ? parts.roofEdge : null;
lightsGroup = LightingModel.buildLights3D(parts.lighting.lamps, edge ? edge.spots : [], edge ? edge.top - edge.fasciaHeight : 0, parts.lighting.indoor);
lightsGroup = LightingModel.buildLights3D(parts.lighting.lamps, edge ? edge.spots : [], edge ? edge.top - edge.fasciaHeight : 0, parts.lighting.indoor, {
outdoorFactor: skyMode === 'night' ? 1 : LightingModel.DAY_OUTDOOR_FACTOR
});
scene.add(lightsGroup);
}
}