I am successfully install @react-three/drei, "@react-three/fiber and three .
import {React,Suspense,useEffect,useState} from 'react'
import {Canvas} from '@react-three/drei'
import { OrbitControls,Preload,useGLTF } from '@react-three/drei'
import CanvasLoader from '../Loader'
const Computers = () => {
const computer=useGLTF('./desktop_pc/scene.gltf');
return (
<mesh>
<hemisphereLight intensity={0.15} groundColor="black"/>
<pointLight intensity={1}/>
<primitive object={computer.scene}/>
</mesh>
)
}
const ComputersCanvas=()=>{
…
Top comments (0)