Struct three::DirectionalLight [] [src]

pub struct DirectionalLight { /* fields omitted */ }

The light source that illuminates all objects equally from a given direction, like an area light of infinite size and infinite distance from the scene; there is shading, but cannot be any distance falloff.

Methods

impl DirectionalLight
[src]

Returns true if it has ShadowMap, false otherwise.

Adds shadow map for this light source.

Methods from Deref<Target = Object>

Invisible objects are not rendered by cameras.

Rotates object in the specific direction of target.

Set both position, orientation and scale.

Set position.

Set orientation.

Set scale.

Get actual information about itself from the scene.

Panics

Panics if scene doesn't have this Object.

Trait Implementations

impl AsRef<NodePointer> for DirectionalLight
[src]

Performs the conversion.

impl Deref for DirectionalLight
[src]

The resulting type after dereferencing

The method called to dereference a value

impl DerefMut for DirectionalLight
[src]

The method called to mutably dereference a value