Replies: 1 comment
-
|
It will work if you wrap the Scene itself with that context, the children are not wrapped in it |
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.
-
I am playing with @ryansolid's nice WebGL/three.js Sandbox and wanted to add a Context so that children have access to things like the camera.
However this does not work (Context in children is undefined) which probably is because the children are actually not explicitly passed through in the JSX of the
<Scene>component.I have created a forked Sandbox. The Context is provided by
<Scene>and I am accessing it inside<Mesh>(where it is undefined).Any idea how to make this work? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions