auto-git:

[change] src/document/scene-document-validation.ts
 [change] src/runtime-three/runtime-host.ts
This commit is contained in:
2026-04-22 14:01:25 +02:00
parent c95e4e6288
commit da6eb2d116
2 changed files with 22 additions and 0 deletions

View File

@@ -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,

View File

@@ -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,