I am learning three js and I encounter some issue which is not clear to me. I have one mesh object and and 3 materials (MeshBasicMaterial,MeshNormalMaterial,MeshLambertMaterial). In my example, I swith one material to another.
There is something I don't understand.If i initialize my mesh object with one material other than the MeshBasicMaterial, I can switch perfectly.
But if I initialize my mesh object with the MeshBasicMaterial, I can't switch to another material. Within the webbroswer console, I got an error such as GL_INVALID_OPERATION attemp to acces out of range vertices attribute 1.
What is the explanation of that?