Skip to main content

SpotLightGeometry

Trait SpotLightGeometry 

Source
pub trait SpotLightGeometry {
    // Required methods
    fn unit_direction(&self) -> [f32; 3];
    fn cos_inner(&self) -> f32;
    fn cos_outer(&self) -> f32;
}
Expand description

Cone direction and angular falloff cosines for a SpotLight.

Required Methods§

Source

fn unit_direction(&self) -> [f32; 3]

Unit-length cone axis.

Source

fn cos_inner(&self) -> f32

Cosine of the inner half-angle: the widest angle still at full brightness.

Source

fn cos_outer(&self) -> f32

Cosine of the outer half-angle: the angle at which the cone is black.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§