Currently, if you use multiple of these materials, only one (the first) shader gets used.
If you use onBeforeCompile you must set the cache key:
https://threejs.org/docs/?q=meshstand#api/en/materials/Material.customProgramCacheKey
See mrdoob/three.js#17567 and mrdoob/three.js#19377
Currently, if you use multiple of these materials, only one (the first) shader gets used.
If you use
onBeforeCompileyou must set the cache key:https://threejs.org/docs/?q=meshstand#api/en/materials/Material.customProgramCacheKey
See mrdoob/three.js#17567 and mrdoob/three.js#19377