Controls the number of surfaces to be generated along X and Z axes. This is the basic vertex density control for the generated mesh.
We limited the maximum number of segments to the maximum of height map resolution and the hole map resolution.
The resulting terrain mesh will have at most XSegments x ZSegments surfaces before simplification.
This terrain is generated with 128x128 segments, so it has 129 x 129 = 16,641 vertices.