Trait IsLight

Source
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§

Source

fn style(&self) -> LightStyle

Return the style of this light.

Source

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.

Implementors§