TerrainBufferGeometry Class
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
NumberWidth of the terrain.
-
height
NumberHeight of the terrain.
-
widthSegments
NumberHow many segments compose the terrain width.
-
heightSegments
NumberHow many segments compose the terrain height.
-
scale
NumberScale of the terrain in height (maximum altitude of the terrain).
-
image
ImageImage containing the height data of the terrain.