pub struct SpotLightSource {
pub x: f32,
pub y: f32,
pub z: f32,
pub points_at_x: f32,
pub points_at_y: f32,
pub points_at_z: f32,
pub specular_exponent: f32,
pub limiting_cone_angle: Option<f32>,
}Expand description
Spot light with position, direction, and cone angle.
Light emanates from a point in a specific direction with limited spread. Like a flashlight or stage spotlight with adjustable focus.
Fields§
§x: f32§y: f32§z: f32§points_at_x: f32§points_at_y: f32§points_at_z: f32§specular_exponent: f32§limiting_cone_angle: Option<f32>Trait Implementations§
Source§impl Clone for SpotLightSource
impl Clone for SpotLightSource
Source§fn clone(&self) -> SpotLightSource
fn clone(&self) -> SpotLightSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpotLightSource
impl Debug for SpotLightSource
Source§impl PartialEq for SpotLightSource
impl PartialEq for SpotLightSource
impl StructuralPartialEq for SpotLightSource
Auto Trait Implementations§
impl Freeze for SpotLightSource
impl RefUnwindSafe for SpotLightSource
impl Send for SpotLightSource
impl Sync for SpotLightSource
impl Unpin for SpotLightSource
impl UnsafeUnpin for SpotLightSource
impl UnwindSafe for SpotLightSource
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