pub struct AmbientLight {
pub color: [f32; 3],
pub intensity: f32,
}Expand description
Ambient light parameters.
Emulates sky-hemisphere illumination. All surfaces receive at least this much light regardless of their orientation.
Fields§
§color: [f32; 3]Ambient light colour (linear RGB, 0–1). Default: white.
intensity: f32Ambient intensity multiplier. Default: 0.5.
Trait Implementations§
Source§impl Clone for AmbientLight
impl Clone for AmbientLight
Source§fn clone(&self) -> AmbientLight
fn clone(&self) -> AmbientLight
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 AmbientLight
impl Debug for AmbientLight
Source§impl Default for AmbientLight
impl Default for AmbientLight
Source§impl PartialEq for AmbientLight
impl PartialEq for AmbientLight
impl StructuralPartialEq for AmbientLight
Auto Trait Implementations§
impl Freeze for AmbientLight
impl RefUnwindSafe for AmbientLight
impl Send for AmbientLight
impl Sync for AmbientLight
impl Unpin for AmbientLight
impl UnsafeUnpin for AmbientLight
impl UnwindSafe for AmbientLight
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