Replies: 1 comment
-
that would assign the background to the newly created scene object. Instead, what you want to do is add the <background as a child of the main scene. You can do that by making sure that the object doesn't have a parent. https://codesandbox.io/s/sleepy-goodall-9qnr1?file=/src/App.js:273-333 I'm using
So, since the <primitive doesn't have a real parent in the jsx tree other than <Canvas, it will |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The
background
prop on thescene
component doesn't show the background image. I have created demos showing this for r3f and three.js belowr3f version:
https://codesandbox.io/s/mystifying-star-4jucg?file=/src/App.js
three.js version:
https://codesandbox.io/s/condescending-pine-qhjje?file=/src/index.js
Beta Was this translation helpful? Give feedback.
All reactions