Struct three_d::renderer::light::DirectionalLight [−][src]
pub struct DirectionalLight { /* fields omitted */ }
Expand description
A light which shines in the given direction. The light will cast shadows if you generate a shadow map.
Implementations
pub fn new(
context: &Context,
intensity: f32,
color: Color,
direction: &Vec3
) -> ThreeDResult<DirectionalLight>
pub fn generate_shadow_map(
&mut self,
frustrum_height: f32,
texture_width: u32,
texture_height: u32,
geometries: &[impl Geometry]
) -> ThreeDResult<()>
Trait Implementations
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more