Hi, i would be grateful if someone knows and could tell me the proper name for the method use for merging meshes, so i would like the clouds there to be a single mesh, but not just smashing them all together, making the edges blend in so that its a single shape rather than obviously a bunch of spheres, is this a unity thing or would i be better off exploring some ray/cube marching type shaders?
As long as they share one material, you might want to have a look at Mesh.CombineMeshes. The meshes are treated as one object, but it looks exactly the same. No changes to the vertices, but just batching the objects together as one, to reduce draw calls. Here’s an example:
// Parent all your similar meshes under one object
public void CombineMeshes(GameObject parent)
{
var meshFilters = parent.GetComponentsInChildren<MeshFilter>();
var combines = new CombineInstance[meshFilters.Length];
for (int i = 0; i < combines.Length; i++)
{
var combine = new CombineInstance()
{
mesh = meshFilters*.sharedMesh,*