TerrainBufferGeometry Class

Module: Animation

Terrrain geometry is a plane like geometry deformed by a height map texture.

This geometry type can be used to create large terrains. Its possible to generate the height data using scripts and create terrain dynamically.

Constructor

TerrainBufferGeometry

(
  • width
  • height
  • widthSegments
  • heightSegments
  • scale
  • image
)

Parameters:

  • width Number

    Width of the terrain.

  • height Number

    Height of the terrain.

  • widthSegments Number

    How many segments compose the terrain width.

  • heightSegments Number

    How many segments compose the terrain height.

  • scale Number

    Scale of the terrain in height (maximum altitude of the terrain).

  • image Image

    Image containing the height data of the terrain.

Item Index