pub struct SpotLight {
pub uuid: Uuid,
pub transform: Transform,
pub spectrum: Spectrum,
pub lumens: Lumens,
pub candela: Candela,
pub direction: float3,
pub angle: f32,
}
Fields
uuid: Uuid
transform: Transform
spectrum: Spectrum
lumens: Lumens
candela: Candela
direction: float3
angle: f32
Implementations
Trait Implementations
sourceimpl Light for SpotLight
impl Light for SpotLight
fn kind(&self) -> LightType
fn color(&self) -> Spectrum
fn lumens(&self) -> Lumens
fn candela(&self) -> Candela
fn set_color(&mut self, spectrum: Spectrum)
fn set_lumens(&mut self, lm: Lumens)
fn intensity(&self) -> f32
fn set_intensity(&mut self, lm: Lumens)
sourceimpl Object for SpotLight
impl Object for SpotLight
fn translate(&self) -> &float3
fn scale(&self) -> &float3
fn rotation(&self) -> &float3
fn transform(&self) -> &float4x4
fn transform_inverse(&self) -> &float4x4
fn set_translate(&mut self, pos: float3)
fn set_scale(&mut self, sz: float3)
fn set_rotation(&mut self, rot: float3)
fn up(&self) -> float3
fn right(&self) -> float3
fn forward(&self) -> float3
fn set_up(&mut self, speed: float3)
fn set_right(&mut self, speed: float3)
fn set_forward(&mut self, speed: float3)
sourceimpl UpdateEvent for SpotLight
impl UpdateEvent for SpotLight
Auto Trait Implementations
impl RefUnwindSafe for SpotLight
impl Send for SpotLight
impl Sync for SpotLight
impl Unpin for SpotLight
impl UnwindSafe for SpotLight
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.