Hi I’m need to clone a material, so I can have two independent shaders.
But when I do it the maps linked to the material seems not to be included in the new copy.
The code is some like
var mat1=new THREE.MeshPhongMaterial({ … });
var mat2=mat1.clone();
In mat1 (left sphere) I’m using only an envMap.
But the right sphere which uses mat2, has no envMap.
(CubeMap)
Any idea on how to create a complete clone? I using Three.js release 106