You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am replicating an example I found of a skybox shape. I get the error 'useResource' is not exported from '@react-three/fiber'. I want to reuse the material across some instances which I'll add.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I am replicating an example I found of a skybox shape. I get the error 'useResource' is not exported from '@react-three/fiber'. I want to reuse the material across some instances which I'll add.
I tried replacing with the line
const [material, set] = useState()
but this didn't work
Beta Was this translation helpful? Give feedback.
All reactions