| | |
| | | import { OrbitControls } from '@react-three/drei' |
| | | import { Environment, Sky } from '@react-three/drei' |
| | | import Help from '@/components/help' |
| | | import Lights from '@/components/light' |
| | | import Camera from '@/components/camera' |
| | | |
| | | const Base = (props) => { |
| | | return ( |
| | | <div style={{ height: '100%', width: '100%' }}> |
| | | <Canvas> |
| | | <ambientLight intensity={Math.PI / 2} /> |
| | | <spotLight position={[10, 10, 10]} angle={0.15} penumbra={1} decay={0} intensity={Math.PI} /> |
| | | <pointLight position={[-10, -10, -10]} decay={0} intensity={Math.PI} /> |
| | | <Lights /> |
| | | {/* <Camera /> */} |
| | | <Sky distance={450000} sunPosition={[0, 1, 0]} inclination={0} azimuth={0.25} /> |
| | | <Box position={[0, 0, 0]} /> |
| | | <OrbitControls /> |
| | | <Sky distance={450000} sunPosition={[0, 1, 0]} inclination={0} azimuth={0.25} /> |
| | | <Environment background preset="warehouse" /> |
| | | <Help /> |
| | | </Canvas> |