Method GetPixelCountByMeshResolutionForSingleChunk
GetPixelCountByMeshResolutionForSingleChunk(int)
Calculate the number of 'vertex location' or 'height map pixel count' corresponding to meshResolution value. This tells the exact number of height map pixel on one axis (X-axis or Z-axis) needed to map 1 location to 1 pixel. This value calculated per-chunk, GetPixelCountByMeshResolution(int, int) to get the value for the whole terrain.
public static int GetPixelCountByMeshResolutionForSingleChunk(int meshResolution)
Parameters
meshResolutionintThe MeshResolution
Returns
- int
The number of pixel or vertex location of 1 chunk.