2025-08-28 16:52:23 -05:00
|
|
|
import { OrbitControls } from '@react-three/drei';
|
2025-08-28 16:12:40 -05:00
|
|
|
import { Canvas } from '@react-three/fiber';
|
|
|
|
|
import { Suspense } from 'react';
|
|
|
|
|
import { Model } from './components/Model';
|
|
|
|
|
|
|
|
|
|
export function MixerScene() {
|
|
|
|
|
return (
|
|
|
|
|
<Canvas
|
2025-08-28 16:52:23 -05:00
|
|
|
shadows
|
2025-08-28 16:12:40 -05:00
|
|
|
camera={{
|
2025-08-28 16:52:23 -05:00
|
|
|
fov: 45,
|
2025-08-28 16:12:40 -05:00
|
|
|
position: [5, 5, -5],
|
|
|
|
|
}}
|
|
|
|
|
>
|
|
|
|
|
<OrbitControls />
|
|
|
|
|
|
2025-08-28 16:52:23 -05:00
|
|
|
<directionalLight position={[10, 10, 10]} intensity={5} castShadow />
|
|
|
|
|
<directionalLight position={[-10, -10, -10]} intensity={3} castShadow />
|
2025-08-28 16:12:40 -05:00
|
|
|
|
|
|
|
|
<Suspense fallback={null}>
|
|
|
|
|
<Model />
|
|
|
|
|
</Suspense>
|
|
|
|
|
</Canvas>
|
|
|
|
|
);
|
|
|
|
|
}
|