pub struct SeasonFactor {
pub vegetation_green: f32,
pub autumn_shift: f32,
pub snow_cover: f32,
pub density_scale: f32,
}Expand description
Describes how a biome changes by season.
Fields§
§vegetation_green: f32Color multiplier for vegetation (0 = dead/snow-covered, 1 = full green).
autumn_shift: f32Color shift toward autumn browns/oranges.
snow_cover: f32Snow cover [0, 1].
density_scale: f32Effective vegetation density multiplier.
Implementations§
Source§impl SeasonFactor
impl SeasonFactor
Sourcepub fn season_factor(biome: BiomeType, month: u32) -> Self
pub fn season_factor(biome: BiomeType, month: u32) -> Self
Compute seasonal factor for a biome in month 0–11.
Trait Implementations§
Source§impl Clone for SeasonFactor
impl Clone for SeasonFactor
Source§fn clone(&self) -> SeasonFactor
fn clone(&self) -> SeasonFactor
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 SeasonFactor
impl Debug for SeasonFactor
impl Copy for SeasonFactor
Auto Trait Implementations§
impl Freeze for SeasonFactor
impl RefUnwindSafe for SeasonFactor
impl Send for SeasonFactor
impl Sync for SeasonFactor
impl Unpin for SeasonFactor
impl UnsafeUnpin for SeasonFactor
impl UnwindSafe for SeasonFactor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.