Class TerrainData

The TerrainData class stores heightmaps, detail mesh positions, tree instances, and terrain texture alpha maps.

The Terrain component links to the terrain data and renders it.

Hierarchy

  • TerrainData

Constructors

Properties

heightmapResolution: number

Resolution of the heightmap.

size: Vector3

The total size in global units of the terrain.

Accessors

  • get heightmapHeight(): number
  • Height of the terrain in samples(Read Only).

    Returns number

  • get heightmapScale(): Vector3
  • The size of each heightmap sample.

    Returns Vector3

  • get heightmapWidth(): number
  • Width of the terrain in samples(Read Only).

    Returns number

Generated using TypeDoc