Can I draw many InstancedMeshes using BatchedMesh

I need to draw many InstancedMeshes that use the same material. Can I somehow use batch rendering in this case? I guess I can’t directly use BatchedMesh but is there a work around?

BatchedMesh is able to support drawing many instances of many different geometries, so long as they share a material, yes. It’s an alternative to InstancedMesh, which draws many instances of a single geometry.

Do you mean BatchedMesh is more general version of InstancedMesh? Then is it customizable in shader like InstancedMesh? IN my case I need more parameters than just transformation matrix so I use custom shader with InstancedBufferAttribute.

---- edit —

I see I can try using InstancedBufferAttribute with the same custom shader for BatchedMesh just like I do for INstancedMEsh. Ill try it. thank you!

I think batched mesh its like merged geometry but with frustum culling.
2000 models merged to 1 model. Will be rendered 10000 trinagles, 1 draw call.
2000 models batched mesh will cuts with frustum culling. Rendered 5000 triangles 1 draw call.
2000 models original will be too cuts will frustum, will be 5000 triangles, but 1000 draw calls.
Batched mesh instancing also good to render grass chunks on big landscape
I’am right ?