You can try this little plugin, it works out of box without core modifations, you can assign your callbacks multiple times without overriding each other.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
FBX + Material.onBeforeCompile() | 27 | 7023 | March 17, 2020 | |
OnBeforeCompile is not executed to change material | 3 | 631 | June 12, 2022 | |
onBeforeCompile() gets fired twice | 2 | 1065 | May 29, 2022 | |
Material.onBeforeCompile not firing if assigned within GLTFLoader | 1 | 1041 | June 17, 2020 | |
Confuse situation when using 'onBeforeCompile' in react three fiber | 0 | 602 | April 20, 2023 |