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 | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/components/shelf.jsx b/src/components/shelf.jsx index 22ac75c..fcb6e7e 100644 --- a/src/components/shelf.jsx +++ b/src/components/shelf.jsx @@ -21,8 +21,14 @@ if (!fbx.castShadow) { Common.setShadow(fbx); } - Common.setColor(fbx, 0x778ca3); + // 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