Struct three::light::Directional
source · pub struct Directional { /* private fields */ }
Expand description
The light source that illuminates all objects equally from a given direction, like an area light of infinite size and infinite distance from the scene; there is shading, but cannot be any distance falloff.
Implementations
sourceimpl Directional
impl Directional
Trait Implementations
sourceimpl AsRef<Base> for Directional
impl AsRef<Base> for Directional
sourceimpl Clone for Directional
impl Clone for Directional
sourcefn clone(&self) -> Directional
fn clone(&self) -> Directional
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Directional
impl Debug for Directional
sourceimpl DowncastObject for Directional
impl DowncastObject for Directional
sourcefn downcast(object: ObjectType) -> Option<Self>
fn downcast(object: ObjectType) -> Option<Self>
Attempts to extract the concrete type of the object from an
ObjectType
. Read moresourceimpl Hash for Directional
impl Hash for Directional
sourceimpl Light for Directional
impl Light for Directional
sourceimpl Object for Directional
impl Object for Directional
sourcefn resolve_data(&self, sync_guard: &SyncGuard<'_>) -> Self::Data
fn resolve_data(&self, sync_guard: &SyncGuard<'_>) -> Self::Data
Retrieves the internal data for the object. Read more
sourcefn set_visible(&self, visible: bool)
fn set_visible(&self, visible: bool)
Invisible objects are not rendered by cameras.
sourcefn set_transform<P, Q>(&self, pos: P, rot: Q, scale: f32)where
Self: Sized,
P: Into<Point3<f32>>,
Q: Into<Quaternion<f32>>,
fn set_transform<P, Q>(&self, pos: P, rot: Q, scale: f32)where
Self: Sized,
P: Into<Point3<f32>>,
Q: Into<Quaternion<f32>>,
Set both position, orientation and scale.
sourcefn set_orientation<Q>(&self, rot: Q)where
Self: Sized,
Q: Into<Quaternion<f32>>,
fn set_orientation<Q>(&self, rot: Q)where
Self: Sized,
Q: Into<Quaternion<f32>>,
Set orientation.
sourcefn set_weights(&self, weights: Vec<f32>)
fn set_weights(&self, weights: Vec<f32>)
Set weights.
sourceimpl PartialEq<Directional> for Directional
impl PartialEq<Directional> for Directional
sourcefn eq(&self, other: &Directional) -> bool
fn eq(&self, other: &Directional) -> bool
impl Eq for Directional
impl StructuralEq for Directional
impl StructuralPartialEq for Directional
Auto Trait Implementations
impl !RefUnwindSafe for Directional
impl !Send for Directional
impl !Sync for Directional
impl Unpin for Directional
impl !UnwindSafe for Directional
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
.