Multi Material
InstancedMesh2 supports multiple materials like a regular Mesh: pass an array of materials and use a geometry with groups.
const iMesh = new InstancedMesh2(new BoxGeometry(), [ new MeshBasicMaterial({ color: 'red' }), new MeshNormalMaterial(), // ...]);Each group is rendered with the corresponding material, and all materials share the same instance data (matrices, colors, uniforms).