auto-git:
[change] src/document/scene-document-validation.ts [change] src/runtime-three/runtime-host.ts
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user