#[repr(C)]pub struct Light {
pub element: Element,
pub color: Vec3,
pub intensity: Real,
pub local_direction: Vec3,
pub type_: LightType,
pub decay: LightDecay,
pub area_shape: LightAreaShape,
pub inner_angle: Real,
pub outer_angle: Real,
pub cast_light: bool,
pub cast_shadows: bool,
}Fields§
§element: Element§color: Vec3§intensity: Real§local_direction: Vec3§type_: LightType§decay: LightDecay§area_shape: LightAreaShape§inner_angle: Real§outer_angle: Real§cast_light: bool§cast_shadows: boolAuto Trait Implementations§
impl !Send for Light
impl !Sync for Light
impl Freeze for Light
impl RefUnwindSafe for Light
impl Unpin for Light
impl UnsafeUnpin for Light
impl UnwindSafe for Light
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