src/components/ctrl.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/shelf.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/ctrl.jsx
@@ -29,8 +29,8 @@ {/* <CameraControls ref={controlsRef} /> */} <OrbitControls ref={controlsRef} // autoRotate // autoRotateSpeed={0.5} autoRotate autoRotateSpeed={0.5} target={[-200, 100, 0]} /> {/* <PointerCtrl /> */} 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(); }, [])