pub struct Ambient {
pub intensity: f32,
pub light: AmbientLight,
}Expand description
Ambient light: light every surface receives from no particular place, by the direction it faces alone, unshadowed.
Its colours are linear RGB, each scaled by intensity: a colour of 1 at intensity 1 lights a surface as a
directional core.light of intensity 1 (lux) shining straight onto it does. A source whose ambient is relative (to
its sun, say) states it at that scale and reports the approximation; this is not a measured illuminance.
Fields§
§intensity: f32§light: AmbientLightTrait Implementations§
impl StructuralPartialEq for Ambient
Auto Trait Implementations§
impl Forget for Ambient
impl Freeze for Ambient
impl RefUnwindSafe for Ambient
impl Send for Ambient
impl Sync for Ambient
impl Unpin for Ambient
impl UnsafeUnpin for Ambient
impl UnwindSafe for Ambient
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