| | |
| | | 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' |
| | |
| | | gl={{ |
| | | logarithmicDepthBuffer: true, |
| | | }} |
| | | onCreated={(state) => (state.gl.shadowMap.autoUpdate = false)} |
| | | > |
| | | <Lights /> |
| | | <Camera /> |
| | |
| | | <TreeGroup /> |
| | | <House /> |
| | | <Warehouse /> |
| | | <OrbitControls /> |
| | | <Environment background preset="night" /> |
| | | <Help /> |
| | | </Canvas> |
| | | <Left /> |