How to create clone or instance with his own vertex buffer

I have a meshes which I need to color by vertex color into different colors but if create a clone even I create a new vertex data and apply it on cloned mesh it is still has the same color for all cloned meshes

Cloned meshes share the same geometry, so the same vertex buffers => that’s the purpose of cloning.

If you want to use different vertex buffers, you can’t use clones. Or you can call mesh.makeGeometryUnique() to create a unique geometry for the mesh, but it means the mesh won’t really be a clone of the source mesh anymore, as they won’t use the same geometry.

2 Likes

It works! thank you!