pub struct SkyLight {
pub uuid: Uuid,
pub transform: Transform,
pub spectrum: Spectrum,
pub lumens: Lumens,
pub candela: Candela,
}
Fields
uuid: Uuid
transform: Transform
spectrum: Spectrum
lumens: Lumens
candela: Candela
Implementations
Trait Implementations
sourceimpl Light for SkyLight
impl Light for SkyLight
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 SkyLight
impl Object for SkyLight
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 SkyLight
impl UpdateEvent for SkyLight
Auto Trait Implementations
impl RefUnwindSafe for SkyLight
impl Send for SkyLight
impl Sync for SkyLight
impl Unpin for SkyLight
impl UnwindSafe for SkyLight
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
.