pub struct EnvironmentMonth {
pub ambient_color: u32,
pub sun_color: u32,
pub fog_color: u32,
pub fog_start: f32,
pub fog_end: f32,
pub fog_max: f32,
pub sun_yaw: f32,
pub sun_pitch: f32,
}Expand description
One month of EnvironmentDescription lighting (32 bytes at + 0x20·month).
The game interpolates between the current and the next month, then calls
SetFog(fog_start, fog_end, fog_color with alpha fog_max) and
SunLight::Set(FromYawPitch(sun_yaw, sun_pitch), sun_color, ambient_color). Colours are
0xAARRGGBB.
Fields§
§ambient_color: u32The ambient colour (0xAARRGGBB).
sun_color: u32The sun’s colour (0xAARRGGBB).
fog_color: u32The fog’s colour (0xAARRGGBB).
fog_start: f32Where the fog starts.
fog_end: f32Where the fog ends.
fog_max: f32The fog’s highest density.
sun_yaw: f32Degrees.
sun_pitch: f32Degrees above the horizon.
Trait Implementations§
Source§impl Clone for EnvironmentMonth
impl Clone for EnvironmentMonth
Source§fn clone(&self) -> EnvironmentMonth
fn clone(&self) -> EnvironmentMonth
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EnvironmentMonth
Source§impl Debug for EnvironmentMonth
impl Debug for EnvironmentMonth
Source§impl PartialEq for EnvironmentMonth
impl PartialEq for EnvironmentMonth
impl StructuralPartialEq for EnvironmentMonth
Auto Trait Implementations§
impl Freeze for EnvironmentMonth
impl RefUnwindSafe for EnvironmentMonth
impl Send for EnvironmentMonth
impl Sync for EnvironmentMonth
impl Unpin for EnvironmentMonth
impl UnsafeUnpin for EnvironmentMonth
impl UnwindSafe for EnvironmentMonth
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