From afbd08deb5101d2f2ff97f66f4388162f38860a2 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 17 八月 2024 11:21:55 +0800
Subject: [PATCH] #

---
 src/components/shelf.jsx |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/components/shelf.jsx b/src/components/shelf.jsx
index 387d77b..fcb6e7e 100644
--- a/src/components/shelf.jsx
+++ b/src/components/shelf.jsx
@@ -23,6 +23,12 @@
         }
         // Common.setColor(fbx, 0x778ca3);
         fbx.scale.set(MODEL_SHELF_SCALE.x, MODEL_SHELF_SCALE.y, MODEL_SHELF_SCALE.z);
+        fbx.traverse((child) => {
+            if (child.isMesh) {
+                child.material.transparent = true;
+                child.material.opacity = 0.8;
+            }
+        })
         return fbx.clone();
     }, [])
 

--
Gitblit v1.9.1