pub struct TerrainConfig {
pub enabled: bool,
pub vertical_exaggeration: f64,
pub mesh_resolution: u16,
pub skirt_depth: f64,
pub source_max_zoom: u8,
pub source: Box<dyn ElevationSource>,
}Expand description
Configuration for the terrain elevation system.
Fields§
§enabled: boolWhether terrain rendering is enabled.
vertical_exaggeration: f64Vertical exaggeration factor (1.0 = real scale).
mesh_resolution: u16Number of vertices per tile edge for terrain mesh subdivision.
skirt_depth: f64Skirt depth in meters (hides seams between tiles at different LODs).
source_max_zoom: u8Maximum zoom level supported by the elevation source.
When a desired terrain tile exceeds this zoom, the manager fetches elevation from a clamped parent tile and reuses that data. This prevents flat/missing terrain for tiles near the camera whose covering-tiles zoom exceeds the source’s max.
Defaults to 15 (common for AWS / Mapbox terrain services).
source: Box<dyn ElevationSource>The elevation data source.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TerrainConfig
impl !RefUnwindSafe for TerrainConfig
impl Send for TerrainConfig
impl Sync for TerrainConfig
impl Unpin for TerrainConfig
impl UnsafeUnpin for TerrainConfig
impl !UnwindSafe for TerrainConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more