-
Hello there, I'm working on a shader for using as a background of a scene. Just found two threads about this technique, which consists in disabling auto clear and having two cameras / two scenes https://stackoverflow.com/questions/56636971/fixed-position-shader-background-in-three-js So, in order to do that in R3F, need to configure the custom renderer with UseFrame? Is there an alternative way to do that? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
what do you mean when you say alternative? memoized calc goes into usememo, effects into useeffect, state into usestate, renderloop into useframe. when you unfiddle vanilla code you just need to place it into these categories to form a self contained component in the end. |
Beta Was this translation helpful? Give feedback.
what do you mean when you say alternative? memoized calc goes into usememo, effects into useeffect, state into usestate, renderloop into useframe. when you unfiddle vanilla code you just need to place it into these categories to form a self contained component in the end.