Expand description
Terrain elevation subsystem.
Structs§
- Backfill
State - Per-tile record of which neighbour borders have been backfilled.
- Elevation
Source Diagnostics - Diagnostics snapshot for an elevation source.
- Elevation
Source Failure Diagnostics - Failure counters for terrain elevation sources.
- Flat
Elevation Source - A flat elevation source that always returns zero elevation.
- Http
Elevation Source - An
ElevationSourcethat fetches Terrain-RGB tiles over HTTP. - Prepared
Hillshade Raster - Prepared hillshade raster derived from a DEM tile.
- Quantized
Mesh Source - HTTP-backed quantized-mesh elevation source.
- Terrain
Config - Configuration for the terrain elevation system.
- Terrain
Diagnostics - Snapshot diagnostics for the terrain pipeline.
- Terrain
Elevation Texture - GPU-sampleable elevation texture payload for a terrain tile.
- Terrain
Manager - Manages terrain elevation data and mesh generation.
- Terrain
Mesh Data - CPU-side terrain mesh data ready for GPU upload.
Enums§
- Terrain
Error - Errors that can occur during terrain operations.
- Terrain
RgbEncoding - Encoding scheme for Terrain-RGB PNG tiles.
Constants§
- NEIGHBOR_
OFFSETS - The eight (dx, dy) neighbour offsets – four cardinal, four diagonal.
Traits§
- Elevation
Source - A source of elevation data for terrain tiles.
Functions§
- build_
terrain_ descriptor - Build a lightweight terrain descriptor that carries reusable-grid metadata and GPU-sampleable elevation payload without eagerly generating displaced CPU geometry.
- build_
terrain_ descriptor_ with_ source - Build a lightweight terrain descriptor with explicit elevation-source mapping.
- build_
terrain_ mesh - Build a terrain mesh for a tile, displacing vertex Z by elevation values.
- build_
terrain_ mesh_ with_ source - Build a terrain mesh with explicit elevation-source mapping metadata.
- elevation_
region_ in_ texture_ space - Remap a logical DEM region from interior tile UV space into the full texture UV space of a border-expanded elevation grid.
- expand_
with_ clamped_ border - Wrap a raw elevation grid in a 1-sample border, clamped to the nearest interior sample.
- interior_
dims - Interior (source) dimensions of an expanded grid.
- materialize_
terrain_ mesh - Materialize displaced CPU geometry from a lightweight terrain descriptor.
- patch_
border_ edge - Overwrite one border strip of
targetwith edge data fromneighbor, in place. - patch_
changed_ tiles - Run incremental backfill patching on all tiles affected by a set of newly loaded tiles.
- prepare_
hillshade_ raster - Prepare a DEM-derived hillshade raster for a tile.
- skirt_
height - Compute zoom-dependent skirt height in meters.