pub struct FogPostConfig {
pub color: [f32; 3],
pub density: f32,
}Expand description
Fog blend post configuration.
Fields§
§color: [f32; 3]Fog color in linear RGB.
density: f32Fog density.
Implementations§
Source§impl FogPostConfig
impl FogPostConfig
Sourcepub fn normalized(self) -> Self
pub fn normalized(self) -> Self
Returns a clamped configuration.
Trait Implementations§
Source§impl Clone for FogPostConfig
impl Clone for FogPostConfig
Source§fn clone(&self) -> FogPostConfig
fn clone(&self) -> FogPostConfig
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 FogPostConfig
Source§impl Debug for FogPostConfig
impl Debug for FogPostConfig
Source§impl Default for FogPostConfig
impl Default for FogPostConfig
Source§impl PartialEq for FogPostConfig
impl PartialEq for FogPostConfig
Source§fn eq(&self, other: &FogPostConfig) -> bool
fn eq(&self, other: &FogPostConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FogPostConfig
Auto Trait Implementations§
impl Freeze for FogPostConfig
impl RefUnwindSafe for FogPostConfig
impl Send for FogPostConfig
impl Sync for FogPostConfig
impl Unpin for FogPostConfig
impl UnsafeUnpin for FogPostConfig
impl UnwindSafe for FogPostConfig
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