Is there a way to add a material to an existing mesh without calling the mesh constructor again?
I already have a mesh created using the constructor:
var mesh = new THREE.Mesh(geometry, material);
Now I have created another material in my code:
var material2 = new THREE.MeshBasicMaterial();
How can I add this new material to the existing mesh?
mesh.material = [material, material2]; //does not work
The above method does not seem to work. Is there a different way to achieve this?