pub enum AmbientLight {
Flat([f32; 3]),
Gradient {
sky: [f32; 3],
equator: [f32; 3],
ground: [f32; 3],
},
}Expand description
How Ambient’s light varies with the direction a surface faces.
Variants§
Flat([f32; 3])
The same colour whatever a surface faces.
Gradient
A gradient over the direction a surface faces: sky facing up (+Y), equator facing sideways, ground facing
down.
Implementations§
Trait Implementations§
Source§impl Clone for AmbientLight
impl Clone for AmbientLight
Source§impl Debug for AmbientLight
impl Debug for AmbientLight
Source§impl PartialEq for AmbientLight
impl PartialEq for AmbientLight
Source§impl Serialize for AmbientLight
impl Serialize for AmbientLight
impl StructuralPartialEq for AmbientLight
Auto Trait Implementations§
impl Forget for AmbientLight
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