public void UpdateMesh(float[,] heightMap) { Init(); meshDisplay.transform.position = new Vector3( heightMap.GetLength(0) * meshParams.vertSpacing / Defines.UnityUnitsToPixelRatio, heightMap.GetLength(1) * meshParams.vertSpacing / Defines.UnityUnitsToPixelRatio, 0); filter.mesh = MeshMaker.ConstructMeshFrom(colorSteps, heightMap, meshParams); }