Struct rin_scene::light::DirectionalLight [−][src]
pub struct DirectionalLight { /* fields omitted */ }
Implementations
impl DirectionalLight
[src]
impl DirectionalLight
[src]pub fn from_components(
color: Rgb<f32, LinearRgb>,
radius: f32,
strength: f32
) -> DirectionalLight
[src]
color: Rgb<f32, LinearRgb>,
radius: f32,
strength: f32
) -> DirectionalLight
pub fn color(&self) -> &Rgb<f32, LinearRgb>
[src]
pub fn radius(&self) -> f32
[src]
pub fn strength(&self) -> f32
[src]
pub fn set_color<C: ToRgb>(&mut self, color: &C)
[src]
pub fn set_strength(&mut self, strength: f32)
[src]
pub fn set_radius(&mut self, radius: f32)
[src]
pub fn matrices_for(
trafo: &Node,
shadow_map: &Parameters
) -> DirectionalLightMatrices
[src]
trafo: &Node,
shadow_map: &Parameters
) -> DirectionalLightMatrices
pub fn debug_geometry<'a, I1, I2>(
&self,
shadow_cascades: Option<I1>,
static_shadow_cascades: Option<I2>
) -> Mesh<Vertex3DColor> where
I1: IntoIterator<Item = &'a Parameters>,
I2: IntoIterator<Item = &'a Parameters>,
[src]
&self,
shadow_cascades: Option<I1>,
static_shadow_cascades: Option<I2>
) -> Mesh<Vertex3DColor> where
I1: IntoIterator<Item = &'a Parameters>,
I2: IntoIterator<Item = &'a Parameters>,
pub fn debug_material<'a, C: CreationContext<'a>>(world: &mut C) -> MaterialRef
[src]
Trait Implementations
impl Changes for DirectionalLight
[src]
impl Changes for DirectionalLight
[src]fn has_changed(&self) -> bool
[src]
fn reset_changed(&mut self)
[src]
impl Clone for DirectionalLight
[src]
impl Clone for DirectionalLight
[src]fn clone(&self) -> DirectionalLight
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Component for DirectionalLight
[src]
impl Component for DirectionalLight
[src]type Storage = AutoChanged<DenseVec<DirectionalLight>, DirectionalLight>
type MutStorageCacheGuard = ()
fn type_name() -> &'static str
[src]
fn is_reference() -> bool
[src]
pub fn id() -> TypeId
[src]
pub fn references_other(
) -> Option<Box<dyn Fn(&Storages, &Entity) + 'static, Global>>
[src]
) -> Option<Box<dyn Fn(&Storages, &Entity) + 'static, Global>>
impl<'a> DebugParameter for DirectionalLight
[src]
impl<'a> DebugParameter for DirectionalLight
[src]fn debug<S: Serializer>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
[src]
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
impl<'de> Deserialize<'de> for DirectionalLight
[src]
impl<'de> Deserialize<'de> for DirectionalLight
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for DirectionalLight
[src]
impl Serialize for DirectionalLight
[src]impl Copy for DirectionalLight
[src]
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
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<C> ComponentSend for C where
C: Component + Send,
[src]
C: Component + Send,
impl<C> ComponentThreadLocal for C where
C: Component,
[src]
C: Component,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> Slottable for T where
T: Copy,
[src]
T: Copy,