#
luxiaotao1123
2024-04-23 32050f795773ca0373992648a8a5b715ed2e805b
#
2个文件已修改
12 ■■■■■ 已修改文件
src/components/shelf.jsx 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/base.jsx 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/shelf.jsx
@@ -13,14 +13,18 @@
    return (
        <>
            <group rotation-y={rotationY} position={position}>
            <mesh position={position}>
                <boxGeometry args={[50, 50, 50]} />
                <meshStandardMaterial color={'hotpink'} />
            </mesh>
            {/* <group rotation-y={rotationY} position={position}>
                <primitive
                    object={model}
                    castShadow
                    receiveShadow
                    scale={[MODEL_SHELF_SCALE, MODEL_SHELF_SCALE, MODEL_SHELF_SCALE]}
                />
            </group>
            </group> */}
        </>
    )
}
src/pages/base.jsx
@@ -26,7 +26,7 @@
                <TreeGroup />
                <House />
                <Warehouse />
                <Box position={[0, 0, 0]} />
                <Demo position={[0, 0, 0]} />
                <OrbitControls />
                <Environment background preset="night" />
                <Help />
@@ -36,7 +36,7 @@
    )
}
const Box = (props) => {
const Demo = (props) => {
    const ref = useRef()
    const [hovered, hover] = useState(false)
    const [clicked, click] = useState(false)