From 4782d0aaa1a27e2496fa2e8bda5639f90716ded1 Mon Sep 17 00:00:00 2001 From: Marcos Reifonas Date: Mon, 21 Sep 2026 02:08:58 +0000 Subject: [PATCH] feat(viewer3d): attenuate non-highlighted pieces ghost wireframe to 5% opacity in process filter mode --- src/components/viewer3d/ModelViewer3D.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/viewer3d/ModelViewer3D.tsx b/src/components/viewer3d/ModelViewer3D.tsx index 66d4b39..3b1af33 100644 --- a/src/components/viewer3d/ModelViewer3D.tsx +++ b/src/components/viewer3d/ModelViewer3D.tsx @@ -391,13 +391,13 @@ export const ModelViewer3D: React.FC = ({ mesh.userData.edgesLine.visible = false; } } else { - // Peça NÃO apontada no processo: ARAMADO CINZA CLARO FANTASMA (Ghost Frame) + // Peça NÃO apontada no processo: ARAMADO CINZA CLARO FANTASMA ULTRA-SUAVE (Atenuação a 5% - Quase invisível) if (!mesh.userData.edgesLine) { const edgesGeo = new THREE.EdgesGeometry(mesh.geometry, 24); const lineMat = new THREE.LineBasicMaterial({ color: 0x94a3b8, // Cinza claro industrial transparent: true, - opacity: 0.65, + opacity: 0.05, // 5% de opacidade para foco total nas peças verdes }); const edgesLine = new THREE.LineSegments(edgesGeo, lineMat); mesh.userData.edgesLine = edgesLine; @@ -405,7 +405,8 @@ export const ModelViewer3D: React.FC = ({ } else { if (mesh.userData.edgesLine.material) { mesh.userData.edgesLine.material.color.set(0x94a3b8); - mesh.userData.edgesLine.material.opacity = 0.65; + mesh.userData.edgesLine.material.transparent = true; + mesh.userData.edgesLine.material.opacity = 0.05; } } mesh.userData.edgesLine.visible = true;