Use onBeforeCompile to customize shader for instancing
Replacing shaders in THREE.ShaderLib is a bad practice, as it interferes with normal operation of built-in materials. When materials need to be customized, it's better to use onBeforeCompile.
Showing
想要评论请 注册 或 登录