Skip to main content

Module heightfield

Module heightfield 

Source
Expand description

§Height Field Surfaces

Height-map driven surfaces with configurable noise sources, real-time deformation, collision detection, LOD, and chunk-based infinite scrolling.

The HeightFieldSurface type generates a 2D grid of heights from a NoiseSource and provides normal computation, ray intersection, and mesh export. The ChunkManager implements infinite scrolling by generating chunks around a camera position and recycling distant ones.

Structs§

ChunkCoord
A coordinate in chunk space.
ChunkManager
Manages a dynamic set of terrain chunks around a camera position.
ErosionParams
Simple hydraulic erosion parameters.
HeightFieldChunk
A single terrain chunk.
HeightFieldCollider
Collision detector for ray-heightfield intersection.
HeightFieldHit
Result of a height field ray intersection.
HeightFieldSurface
A height field surface driven by a noise source.
LodThresholds
Distance thresholds for LOD level selection.

Enums§

HeightFieldAnimation
Real-time animation modes for height fields.
LodLevel
Level of detail for height field rendering.
NoiseSource
Noise generation method for height fields.

Functions§

erode
Run hydraulic erosion simulation on a height field.
generate_lod_indices
Generate indices for a height field at a given LOD level.