How to update defines? #737
gobinda-das-dev
started this conversation in
Guides
Replies: 1 comment
-
|
Hi, in v6 you need to call setChanged() after changing defines. In v7 this is no longer necessary because changes to defines automatically trigger material updates. |
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 want to use defines for some if conditions instead of using uniforms for that.
Here's what i am doing now to update it
but i think this is a wrong, there should be something like needsUpdate for 3js materials.
Beta Was this translation helpful? Give feedback.
All reactions