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
It work pretty well when I use it multiple times in my project, but I wondering is it a good practice when I put 'extend' inside component not outside like document, because I need to pass 'uni' from the outside? Do I need to memorize the "CustomMaterial" to avoid rerendering multiple times ? Thanks
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
-
Hi, I'm writing a custom shader material using 'shaderMaterial' from 'react-three/drei' and it can animate with react-spring/three, this is my code:
AnimateShaderMaterial
Parent component
It work pretty well when I use it multiple times in my project, but I wondering is it a good practice when I put 'extend' inside component not outside like document, because I need to pass 'uni' from the outside? Do I need to memorize the "CustomMaterial" to avoid rerendering multiple times ? Thanks
Beta Was this translation helpful? Give feedback.
All reactions