What is it?
This script is designed to allow for combining meshes sharing the same material, while still allowing for frustum culling. To do so, it groups the objects into clusters, and combines the children of those clusters instead. The result is considerably less draw calls, with the added benefit of frustum culling.
Typical uses for such a system can be grass patches, trees, and in general a lot of static objects spanned across a large area.
Features
- Editor and run-time clustering and combining of their children meshes.
- Saving the combined meshes (this is required when the clustered gameObject is an instantiated prefab).
- One click cluster & uncluster through an easy to use custom inspector.
- Adjustable cluster radius, which directly influences the maximum amount of objects in each cluster.