render to layers #1216
Unanswered
carmandale
asked this question in
Q&A
Replies: 1 comment
-
selective lighting does not work in threejs, this box uses a fork that was made off some pr that i think was later rejected. i updated the box and it seems to work: https://codesandbox.io/s/musing-kirch-8p3r2?file=/src/Scene.js |
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 trying to render to layers to allow for selective light linking.
I am following this, which uses an old version of r3f.
https://codesandbox.io/s/musing-kirch-8p3r2?file=/src/Scene.js:55-99
when I try to do this with the latest, I get an error in useLayoutEffect that 'cannot read property 'layers' of undefined in regards to the camera.
Is there a recommended way to do this with the latest version of r3f?
thanks,
Dale
Beta Was this translation helpful? Give feedback.
All reactions