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:
-
widthNumberWidth of the terrain.
-
heightNumberHeight of the terrain.
-
widthSegmentsNumberHow many segments compose the terrain width.
-
heightSegmentsNumberHow many segments compose the terrain height.
-
scaleNumberScale of the terrain in height (maximum altitude of the terrain).
-
imageImageImage containing the height data of the terrain.
