[][src]Struct rin::gl::spot_light::SpotLight

pub struct SpotLight { /* fields omitted */ }

A light with a position and a direction that emits light with a cutoff cone

Methods

impl SpotLight
[src]

Creates a new default spotlight

Base color of the light

Constant attenuation

Linear attenuation

Quadratic attenuation

Strength multiplier of the base color

Cutoff angle for the spot

0..1 value that indicates the transition from the center of the spot to the borders

0 will have hard borders while 1 will create a transition from the very center to the borders

Cutoff angle for the spot

Strength multiplier of the base color

Light data to feed a UBO

Reference to this light with one or more shadow maps

When applied to a material will draw any object drawn with it using this light with the passed shadow(s)

Trait Implementations

impl NodeRef for SpotLight
[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 SpotLight
[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

Sets the local scale

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 SpotLight
[src]

impl Light for SpotLight
[src]

Auto Trait Implementations

impl Send for SpotLight

impl Sync for SpotLight

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]