pub struct ComputedSky {
pub sun_direction: [f32; 3],
pub sun_intensity: f32,
pub rayleigh_color: [f32; 3],
pub mie_color: [f32; 3],
pub sky_enabled: f32,
}Expand description
Pre-computed sky parameters ready for GPU uniform upload.
Computed once per frame from the SkyConfig stored on
[MapState]. Both WGPU and Bevy renderers consume this struct.
Fields§
§sun_direction: [f32; 3]Unit direction vector toward the sun in world space.
sun_intensity: f32Sun brightness multiplier.
rayleigh_color: [f32; 3]Rayleigh scattering tint (linear RGB).
mie_color: [f32; 3]Mie scattering tint (linear RGB).
sky_enabled: f321.0 when sky rendering is enabled, 0.0 when disabled.
Trait Implementations§
Source§impl Clone for ComputedSky
impl Clone for ComputedSky
Source§fn clone(&self) -> ComputedSky
fn clone(&self) -> ComputedSky
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ComputedSky
impl Debug for ComputedSky
Source§impl Default for ComputedSky
impl Default for ComputedSky
Source§impl PartialEq for ComputedSky
impl PartialEq for ComputedSky
impl Copy for ComputedSky
impl StructuralPartialEq for ComputedSky
Auto Trait Implementations§
impl Freeze for ComputedSky
impl RefUnwindSafe for ComputedSky
impl Send for ComputedSky
impl Sync for ComputedSky
impl Unpin for ComputedSky
impl UnsafeUnpin for ComputedSky
impl UnwindSafe for ComputedSky
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