Either clone the material and assign the cloned material to the mesh instance after which you can change whatever property of the cloned material you want or instead use meshInstances[0].setParameter('color_diffuse', [r, g, b])
.
3 Likes