#
luxiaotao1123
2024-05-11 d18dd311f9b7a7a77a832f57e74434d946f6f0c5
src/pages/fiber.jsx
@@ -1,6 +1,5 @@
import { useRef, useState } from 'react'
import { Canvas, useFrame } from '@react-three/fiber'
import { OrbitControls } from '@react-three/drei'
import { Environment, Sky } from '@react-three/drei'
import Help from '../components/help'
import Lights from '../components/light'
@@ -25,16 +24,14 @@
                <Lights />
                <Camera />
                <Sky distance={450000} sunPosition={[0, 1, 0]} inclination={0} azimuth={0.25} />
                {/* <Buildings /> */}
                {/* <TreeGroup /> */}
                {/* <House /> */}
                <Buildings />
                <TreeGroup />
                <House />
                <Warehouse />
                <OrbitControls />
                <Environment background preset="night" />
                <Help />
            </Canvas>
            {/* <Left /> */}
            {/* <Right /> */}
            <Left />
            <Right />
        </div>
    )