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
In this case it will not work since the defines is not defined in the material. This would work in something like MeshStandardMaterial (albeit it would override STANDARD unless merged or also included).
Expected behavior
It should always set defines (eg. defaulted in Material), or maybe even merge defines on constructor.
Platform:
Three.js version: 145
The text was updated successfully, but these errors were encountered:
Defines are not something that the user is supposed to set when creating built-in materials (I'm not referring to custom materials via ShaderMaterial). I understand that defines might be relevant when using onBeforeCompile() but apart from that there should be no need to work with them.
Hence, the approach outlined in #24771 (comment) is more appropriate.
I ran into this issue while attempting to add the built in vUv varyings to a customized MeshBasicMaterial.
In this case it will not work since the defines is not defined in the material. This would work in something like MeshStandardMaterial (albeit it would override
STANDARD
unless merged or also included).Expected behavior
It should always set defines (eg. defaulted in Material), or maybe even merge defines on constructor.
Platform:
The text was updated successfully, but these errors were encountered: