pub struct Fog {
pub colour: [f32; 3],
pub falloff: FogFalloff,
}Expand description
Distance fog: the light of a surface at distance d metres from the camera is mixed with colour by the fraction
the FogFalloff gives along the camera ray. This does not describe scattering towards the sun.
Fields§
§colour: [f32; 3]Linear RGB of the fog where it is fully opaque, at the scale of core.light colours times intensity of 1 lux
(a source whose fog colour is relative to its exposure states it here as stored and reports the approximation).
falloff: FogFalloffTrait Implementations§
impl StructuralPartialEq for Fog
Auto Trait Implementations§
impl Forget for Fog
impl Freeze for Fog
impl RefUnwindSafe for Fog
impl Send for Fog
impl Sync for Fog
impl Unpin for Fog
impl UnsafeUnpin for Fog
impl UnwindSafe for Fog
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