auto-git:
[change] src/viewport-three/viewport-host.ts
This commit is contained in:
@@ -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") {
|
if (this.displayMode === "authoring") {
|
||||||
const colorHex =
|
const colorHex =
|
||||||
material === undefined || face.materialId === null
|
material === undefined || face.materialId === null
|
||||||
|
|||||||
Reference in New Issue
Block a user