fix opacity 3d scans

This commit is contained in:
wass08
2026-02-05 10:22:06 +09:00
parent 006a6db4a4
commit 3579dccf9a
2 changed files with 10 additions and 2 deletions
@@ -38,9 +38,11 @@ const ScanModel = ({ url, opacity }: { url: string; opacity: number }) => {
if (isTransparent) {
material.transparent = true
material.opacity = normalizedOpacity
material.depthWrite = false;
} else {
material.transparent = false
material.opacity = 1
material.depthWrite = true;
}
material.needsUpdate = true
}