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§
- Chunk
Coord - A coordinate in chunk space.
- Chunk
Manager - Manages a dynamic set of terrain chunks around a camera position.
- Erosion
Params - Simple hydraulic erosion parameters.
- Height
Field Chunk - A single terrain chunk.
- Height
Field Collider - Collision detector for ray-heightfield intersection.
- Height
Field Hit - Result of a height field ray intersection.
- Height
Field Surface - A height field surface driven by a noise source.
- LodThresholds
- Distance thresholds for LOD level selection.
Enums§
- Height
Field Animation - Real-time animation modes for height fields.
- LodLevel
- Level of detail for height field rendering.
- Noise
Source - 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.