v0.4.2: iconen gerepareerd, lucht-achtergrond (skybox) met toggle

- bootstrap-icons: @font-face correct ingebed (selector .bi::before was stuk)
- core/skybox.js + assets/skybox-data.js (lazy), knop Lucht in alle 3D-weergaven
- woning: met lucht aan raster en sandwichpanelen onzichtbaar

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Machiel
2026-09-30 11:58:07 +02:00
co-authored by Claude Opus 5.5
parent 3591fad220
commit 3a4b9608c0
10 changed files with 121 additions and 6 deletions
+7 -1
View File
@@ -1203,7 +1203,8 @@ function mountWallEditor(container, callbacks) {
dirLight.castShadow = true;
scene.add(dirLight);
scene.add(new THREE.GridHelper(10, 20, 0x444444, 0x222222));
const grid = new THREE.GridHelper(10, 20, 0x444444, 0x222222);
scene.add(grid);
const wallMaterials = WallModel.createMaterials();
@@ -1241,6 +1242,11 @@ function mountWallEditor(container, callbacks) {
isolatieVisible = v.isolatie;
update3DScene();
});
// Lucht-achtergrond (core/skybox.js).
let skyOn = Skybox.isOn();
const applySky = () => { grid.visible = !skyOn; Skybox.apply(scene, skyOn, 0x1a1a1a, () => skyOn); };
Skybox.createToggle(document.getElementById('wall-toolbar-3d'), (on) => { skyOn = on; applySky(); });
applySky();
// 3D-opbouw + volume-boekhouding komen uit WallModel.build3D (gedeeld
// met de unit-editor).