Struct octoon::lights::directional::DirectionalLight
source · pub struct DirectionalLight {
pub uuid: Uuid,
pub transform: Transform,
pub spectrum: Spectrum,
pub lumens: Lumens,
pub candela: Candela,
pub direction: float3,
}
Fields
uuid: Uuid
transform: Transform
spectrum: Spectrum
lumens: Lumens
candela: Candela
direction: float3
Implementations
Trait Implementations
sourceimpl Debug for DirectionalLight
impl Debug for DirectionalLight
sourceimpl Default for DirectionalLight
impl Default for DirectionalLight
sourcefn default() -> DirectionalLight
fn default() -> DirectionalLight
Returns the “default value” for a type. Read more
sourceimpl Downcast for DirectionalLight
impl Downcast for DirectionalLight
sourceimpl From<DirectionalLight> for Arc<RefCell<dyn Light + 'static>>
impl From<DirectionalLight> for Arc<RefCell<dyn Light + 'static>>
sourcefn from(light: DirectionalLight) -> Self
fn from(light: DirectionalLight) -> Self
Converts to this type from the input type.
sourceimpl From<DirectionalLight> for Arc<dyn Light + 'static>
impl From<DirectionalLight> for Arc<dyn Light + 'static>
sourcefn from(light: DirectionalLight) -> Self
fn from(light: DirectionalLight) -> Self
Converts to this type from the input type.
sourceimpl From<DirectionalLight> for Rc<RefCell<dyn Light + 'static>>
impl From<DirectionalLight> for Rc<RefCell<dyn Light + 'static>>
sourcefn from(light: DirectionalLight) -> Self
fn from(light: DirectionalLight) -> Self
Converts to this type from the input type.
sourceimpl From<DirectionalLight> for Rc<dyn Light + 'static>
impl From<DirectionalLight> for Rc<dyn Light + 'static>
sourcefn from(light: DirectionalLight) -> Self
fn from(light: DirectionalLight) -> Self
Converts to this type from the input type.
sourceimpl Light for DirectionalLight
impl Light for DirectionalLight
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 DirectionalLight
impl Object for DirectionalLight
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 DirectionalLight
impl UpdateEvent for DirectionalLight
Auto Trait Implementations
impl RefUnwindSafe for DirectionalLight
impl Send for DirectionalLight
impl Sync for DirectionalLight
impl Unpin for DirectionalLight
impl UnwindSafe for DirectionalLight
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
.