auto-git:

[change] src/viewport-three/viewport-host.ts
This commit is contained in:
2026-04-22 14:03:25 +02:00
parent 765b29f3a8
commit 57248bde9e

View File

@@ -6456,6 +6456,22 @@ export class ViewportHost {
});
}
if (brush.volume.mode === "light") {
const baseOpacity =
this.displayMode === "authoring" ? 0.03 : 0;
const opacity =
baseOpacity + (selectedFace ? 0.14 : hoveredFace ? 0.08 : 0);
const lightMaterial = new MeshBasicMaterial({
color: brush.volume.light.colorHex,
transparent: true,
opacity,
depthWrite: false,
wireframe: this.displayMode === "wireframe"
});
lightMaterial.colorWrite = opacity > 0;
return lightMaterial;
}
if (this.displayMode === "authoring") {
const colorHex =
material === undefined || face.materialId === null