pub struct AnimatedSpotLight {
pub light: SpotLight,
pub animation: LightAnimation,
pub base_intensity: f32,
pub base_color: Vec3,
pub orbit_speed: Option<f32>,
pub orbit_axis: Vec3,
/* private fields */
}Expand description
A spot light with a live animation.
Fields§
§light: SpotLight§animation: LightAnimation§base_intensity: f32§base_color: Vec3§orbit_speed: Option<f32>Optional orbit: the spot light rotates around its position.
orbit_axis: Vec3Implementations§
Trait Implementations§
Source§impl Clone for AnimatedSpotLight
impl Clone for AnimatedSpotLight
Source§fn clone(&self) -> AnimatedSpotLight
fn clone(&self) -> AnimatedSpotLight
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnimatedSpotLight
impl RefUnwindSafe for AnimatedSpotLight
impl Send for AnimatedSpotLight
impl Sync for AnimatedSpotLight
impl Unpin for AnimatedSpotLight
impl UnsafeUnpin for AnimatedSpotLight
impl UnwindSafe for AnimatedSpotLight
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