Struct three::light::Hemisphere
source · pub struct Hemisphere { /* private fields */ }
Expand description
HemisphereLight
uses two different colors in opposite to
Ambient
.
The color of each fragment is determined by direction of normal. If the normal points in the direction of the upper hemisphere, the fragment has color of the “sky”. If the direction of the normal is opposite, then fragment takes color of the “ground”. In other cases, color is determined as interpolation between colors of upper and lower hemispheres, depending on how much the normal is oriented to the upper and the lower hemisphere.
Trait Implementations
sourceimpl AsRef<Base> for Hemisphere
impl AsRef<Base> for Hemisphere
sourceimpl Clone for Hemisphere
impl Clone for Hemisphere
sourcefn clone(&self) -> Hemisphere
fn clone(&self) -> Hemisphere
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 Hemisphere
impl Debug for Hemisphere
sourceimpl DowncastObject for Hemisphere
impl DowncastObject for Hemisphere
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 Hemisphere
impl Hash for Hemisphere
sourceimpl Light for Hemisphere
impl Light for Hemisphere
sourceimpl Object for Hemisphere
impl Object for Hemisphere
type Data = HemisphereLightData
type Data = HemisphereLightData
The internal data for the object. Read more
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<Hemisphere> for Hemisphere
impl PartialEq<Hemisphere> for Hemisphere
sourcefn eq(&self, other: &Hemisphere) -> bool
fn eq(&self, other: &Hemisphere) -> bool
impl Eq for Hemisphere
impl StructuralEq for Hemisphere
impl StructuralPartialEq for Hemisphere
Auto Trait Implementations
impl !RefUnwindSafe for Hemisphere
impl !Send for Hemisphere
impl !Sync for Hemisphere
impl Unpin for Hemisphere
impl !UnwindSafe for Hemisphere
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
.