I have a three.js program that includes maybe 10 different textures for hundreds of cubes that are the same size. I am using one instanced mesh for each texture, and all of them are in an array like this:
[instancedMesh, instancedMesh, instancedMesh, ...]
Then, my program runs through the array and updates each individually. However, this is quite resource intensive. Is there a type of mesh that has the rendering efficiency of instanced meshes but can contain many different textures?