#
luxiaotao1123
2024-04-29 354ed76a40a54cf8d83b8bbd06ce642b3934905c
src/pages/base.jsx
@@ -9,10 +9,12 @@
import TreeGroup from '../components/tree-group'
import House from '../components/house'
import Warehouse from '../core/warehouse'
import Left from './left'
import Right from './right'
const Base = (props) => {
    return (
        <div style={{ height: '100%', width: '100%' }}>
        <div style={{ height: '100%', width: '100%', position: 'relative', overflow: 'hidden' }}>
            <Canvas
                shadows
                gl={{
@@ -26,11 +28,12 @@
                <TreeGroup />
                <House />
                <Warehouse />
                <Demo position={[0, 0, 0]} />
                <OrbitControls />
                <Environment background preset="night" />
                <Help />
            </Canvas>
            <Left />
            <Right />
        </div>
    )