Export Holesmap Texture

Texture2D ExportHolesmapTexture(int resolution = 0)

Exports holesmap texture from TerrainData object.

If resolution property is set to 0, then exported texture size is read from the TerrainData.


Texture2D[] ExportHolesmapTexture(int resolution, int splitCountHorizontal, int splitCountVertical)

Splits terrain into 2D grid by splitCountHorizontal and splitCountVertical amount and for each chunk calculates Holesmap texture.


Texture2D ExportHolesmapTexture(int resolution, int splitCountHorizontal, int splitCountVertical, int splitColumnIndex, int splitRowIndex)

Splits terrain into 2D grid by splitCountHorizontal and splitCountVertical amount and calculates Holesmap texture for chunk with index splitColumnIndex and splitRowIndex.

Last updated