website
website copied to clipboard
Drei documentation contols introduction unclear
It is not clear to me where the useResource
comes from. Which library exports it? How can it be accessed/imported?
https://dext.vercel.app/drei/controls/introduction
const myCamera = useResource()
return (
<>
<PerspectiveCamera ref={myCamera} position={[0, 5, 5]} />
<OrbitControls camera={myCamera.current} />
</>
)