pub struct SkyConfig {
pub sky_type: SkyType,
pub sun_position: Option<[f32; 2]>,
pub sun_intensity: f32,
pub atmosphere_color: [f32; 3],
pub halo_color: [f32; 3],
pub opacity: f32,
}Expand description
User-facing sky / atmosphere configuration.
When attached to a StyleDocument or set directly on [MapState],
this enables a procedural sky background rendered behind all scene
geometry.
Default values produce a physically-plausible Earth-like atmosphere
with the sun matching the directional light position from
LightConfig.
Fields§
§sky_type: SkyTypeRendering mode. Default: SkyType::Atmosphere.
sun_position: Option<[f32; 2]>Sun position as [azimuth_deg, altitude_deg].
azimuth_deg: compass bearing (0 = north, 90 = east).altitude_deg: elevation above the horizon (0 = horizon, 90 = zenith).
When None, inherits from the directional light direction in
LightConfig.
sun_intensity: f32Sun brightness multiplier (0–100). Default: 10.0.
atmosphere_color: [f32; 3]Tint for Rayleigh scattering (linear RGB, 0–1). Default: white.
halo_color: [f32; 3]Tint for Mie scattering / halo (linear RGB, 0–1). Default: white.
opacity: f32Overall sky opacity (0–1). Default: 1.0.
At 0.0 the sky pass is skipped entirely (clear-colour only).