#
luxiaotao1123
2024-04-26 e6de6ddae28dec5bf092b66d77ee8d522d39ff04
src/pages/base.jsx
@@ -8,6 +8,7 @@
import Buildings from '../components/buidings'
import TreeGroup from '../components/tree-group'
import House from '../components/house'
import Warehouse from '../core/warehouse'
const Base = (props) => {
    return (
@@ -24,9 +25,9 @@
                <Buildings />
                <TreeGroup />
                <House />
                <Box position={[0, 0, 0]} />
                <Warehouse />
                <OrbitControls />
                <Environment background preset="warehouse" />
                <Environment background preset="night" />
                <Help />
            </Canvas>
        </div>
@@ -34,7 +35,7 @@
    )
}
const Box = (props) => {
const Demo = (props) => {
    const ref = useRef()
    const [hovered, hover] = useState(false)
    const [clicked, click] = useState(false)