I am constructing a big mesh with small parts as accessories. I want 2 materials, 1 for the accessories, one for the main one.
So I thought I’d create a CombineInstance with all the meshes collected and assign subMeshIndex 0 to the main and 1 to the rest. But I think the subMeshIndex of the CombineInstance is used for the source mesh, not for the union.
isn’t very helpful imo.
My hack:
Create a CombineInstance for all accessories, combine them to 1 mesh, mergeSubMeshes = true.
Create a second CombineInstance 1. main mesh, 2. accessories and combine those two without merging the submeshes. Feels bad though.