Skip to content

Interface: TerrainBandLayout

Layout of the elevation staircase in world units.

Band index i ∈ [0, N - 1] maps to a world height i * unit measured from coreRadius. The staircase is strictly uniform:

  • height[0] = 0 → prism collapsed, core visible
  • height[1] = unit → one step above the core
  • height[N - 1] = shell → silhouette sits at radius

Every consecutive pair of bands is separated by exactly unit, so the gap between elev=0 and elev=1 equals the gap between any two adjacent bands — digging always removes a constant slice of world-space height.

Properties

unit

ts
unit: number;

Constant world-unit gap between two consecutive bands.


shell

ts
shell: number;

Shell thickness (1 - coreRadiusRatio) * radius.

Distribué sous la licence indiquée dans le dépôt.