pub struct SpotLight {
pub id: LightId,
pub position: Vec3,
pub direction: Vec3,
pub color: Vec3,
pub intensity: f32,
pub range: f32,
pub inner_angle: f32,
pub outer_angle: f32,
pub attenuation: Attenuation,
pub cast_shadow: bool,
pub enabled: bool,
pub tag: Option<String>,
}Fields§
§id: LightId§position: Vec3§direction: Vec3§color: Vec3§intensity: f32§range: f32§inner_angle: f32Inner cone half-angle in radians (full brightness inside).
outer_angle: f32Outer cone half-angle in radians (zero brightness outside).
attenuation: Attenuation§cast_shadow: bool§enabled: bool§tag: Option<String>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpotLight
impl RefUnwindSafe for SpotLight
impl Send for SpotLight
impl Sync for SpotLight
impl Unpin for SpotLight
impl UnsafeUnpin for SpotLight
impl UnwindSafe for SpotLight
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