From da6eb2d116d100ab1e1c16831967d50fafde7317 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 22 Apr 2026 14:01:25 +0200 Subject: [PATCH] auto-git: [change] src/document/scene-document-validation.ts [change] src/runtime-three/runtime-host.ts --- src/document/scene-document-validation.ts | 11 +++++++++++ src/runtime-three/runtime-host.ts | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/src/document/scene-document-validation.ts b/src/document/scene-document-validation.ts index a623ebad..d99288f8 100644 --- a/src/document/scene-document-validation.ts +++ b/src/document/scene-document-validation.ts @@ -302,6 +302,17 @@ function validateWorldSettings( ); } + if (!isBoolean(world.showCelestialBodies)) { + diagnostics.push( + createDiagnostic( + "error", + "invalid-world-show-celestial-bodies", + "Scene world celestial body toggle must be true or false.", + "world.showCelestialBodies" + ) + ); + } + validateWorldBackgroundSettings( world.background, document, diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 54334e62..27a8a597 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -2426,6 +2426,17 @@ export class RuntimeHost { }); } + if (brush.volume.mode === "light") { + const lightMaterial = new MeshBasicMaterial({ + color: brush.volume.light.colorHex, + transparent: true, + opacity: 0, + depthWrite: false + }); + lightMaterial.colorWrite = false; + return lightMaterial; + } + if (material === null) { const faceMaterial = new MeshStandardMaterial({ color: FALLBACK_FACE_COLOR,