[][src]Struct rin::gl::DirectionalLight

pub struct DirectionalLight { /* fields omitted */ }

A light with no position that throws parallel rays on a specific direction

Methods

impl DirectionalLight
[src]

Creates a DirectionalLight

Returns the color of this light.

Returns the strength of this light, a multiplier of the color

Radius of the light, defines how soft are the shadows

Combines a reference to this light with one or more shadow maps

When drawing with the returned light, the shadows will be applied

Once can use more than one shadow map to for example draw static geometry in one map and dynamic in another so only the dynamic geometry needs to be redrawn each frame

Trait Implementations

impl NodeRef for DirectionalLight
[src]

Returns the local position of this node

Returns the orientation of this node as a quaternion which is how it's stored internally Read more

Returns the orientation of this node as a Rotation3. Read more

Returns the current local scale

The node orientation x axis

The node orientation y axis

The node orientation z axis

Local transformation matrix

Global transformation matrix

Global position of this node

Global orientation of this node

Global scale of this node

Inverse local transformation of this node Read more

Inverse global transformation of this node Read more

impl NodeMut for DirectionalLight
[src]

Updates the internal matrices including the glonal matrices using the optional parent passed as argument Read more

Changes the orientation of the node to look at the passed position using the up vector

Rotate this note a certain angle around the axis of rotation

Append the passed quaternion to the current local orientation

rotate this node around it's local x axis

rotate this node around it's local y axis

rotate this node around it's local z axis

Append a translation to the current local position

Sets the local position of this node

Sets the orientation for this node from an angle and axis of rotation

Sets the orientation for this node from a quaternion

impl Render3d for DirectionalLight
[src]

impl Light for DirectionalLight
[src]

Auto Trait Implementations

impl Send for DirectionalLight

impl Sync for DirectionalLight

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> SetParameter for T
[src]

Sets value as a parameter of self.

impl<V> IntoVec for V
[src]

impl<V> IntoPnt for V
[src]

impl<T> Same for T
[src]

Should always be Self

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]