pub trait IsLight: Clone {
// Required methods
fn style(&self) -> LightStyle;
fn light_space_transforms(
&self,
parent_transform: &TransformDescriptor,
z_near: f32,
z_far: f32,
) -> Vec<Mat4>;
}
Expand description
Describes shared behaviour between all analytical lights.
Required Methods§
Sourcefn style(&self) -> LightStyle
fn style(&self) -> LightStyle
Return the style of this light.
fn light_space_transforms( &self, parent_transform: &TransformDescriptor, z_near: f32, z_far: f32, ) -> Vec<Mat4>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.