Struct AtmospherePreset
pub struct AtmospherePreset {
pub id: u32,
pub clear_rgba: [f32; 4],
pub sun_direction: [f32; 3],
pub sun_radiance: f32,
pub ambient_irradiance: f32,
pub fog_rgb: [f32; 3],
pub fog_density: f32,
}Fields§
§id: u32§clear_rgba: [f32; 4]§sun_direction: [f32; 3]§sun_radiance: f32§ambient_irradiance: f32§fog_rgb: [f32; 3]§fog_density: f32Implementations§
§impl AtmospherePreset
impl AtmospherePreset
pub const fn from_id(id: u32) -> AtmospherePreset
pub const fn from_id(id: u32) -> AtmospherePreset
Resolve a public preset id to one complete lighting/atmosphere state. Unknown ids use the stable deep-void fallback (preset 0).
Trait Implementations§
§impl Clone for AtmospherePreset
impl Clone for AtmospherePreset
§fn clone(&self) -> AtmospherePreset
fn clone(&self) -> AtmospherePreset
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 AtmospherePreset
§impl Debug for AtmospherePreset
impl Debug for AtmospherePreset
§impl PartialEq for AtmospherePreset
impl PartialEq for AtmospherePreset
impl StructuralPartialEq for AtmospherePreset
Auto Trait Implementations§
impl Freeze for AtmospherePreset
impl RefUnwindSafe for AtmospherePreset
impl Send for AtmospherePreset
impl Sync for AtmospherePreset
impl Unpin for AtmospherePreset
impl UnsafeUnpin for AtmospherePreset
impl UnwindSafe for AtmospherePreset
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more