Refactored uniforms cloning into separate file so that it can be reused also...
Refactored uniforms cloning into separate file so that it can be reused also for MeshShaderMaterials. Also changed MeshShaderMaterial demos to show how to use cloning. For these particular demos uniforms cloning is not really necessary as they use only one instance of shader material, but for example, if there were two normal mapped models in one scene, each model would need separate material with own uniforms.
Showing
此差异已折叠。
此差异已折叠。
此差异已折叠。
src/materials/Uniforms.js
0 → 100644
想要评论请 注册 或 登录