pub enum Light3D {
Ambient {
color: Color,
intensity: f32,
},
Directional {
position: [f32; 3],
color: Color,
intensity: f32,
cast_shadow: bool,
},
Point {
position: [f32; 3],
color: Color,
intensity: f32,
distance: f32,
},
}Expand description
3D Lighting
Variants§
Trait Implementations§
impl StructuralPartialEq for Light3D
Auto Trait Implementations§
impl Forget for Light3D
impl Freeze for Light3D
impl Move for Light3D
impl RefUnwindSafe for Light3D
impl Send for Light3D
impl Sync for Light3D
impl Unpin for Light3D
impl UnsafeUnpin for Light3D
impl UnwindSafe for Light3D
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