Enum dotrix_pbr::Light[][src]

pub enum Light {
    Ambient {
        color: Color,
        intensity: f32,
    },
    Directional {
        color: Color,
        direction: Vec3,
        intensity: f32,
        enabled: bool,
    },
    Simple {
        color: Color,
        position: Vec3,
        intensity: f32,
        enabled: bool,
    },
    Point {
        color: Color,
        position: Vec3,
        intensity: f32,
        enabled: bool,
        constant: f32,
        linear: f32,
        quadratic: f32,
    },
    Spot {
        color: Color,
        position: Vec3,
        direction: Vec3,
        intensity: f32,
        enabled: bool,
        cut_off: f32,
        outer_cut_off: f32,
    },
}
Expand description

Light component of different types and settings

Variants

Ambient

Fields of Ambient

color: Color

Light source color

intensity: f32

Light source intensity

Directional

Fields of Directional

color: Color

Light source color

direction: Vec3

Light source direction

intensity: f32

Light source intensity

enabled: bool

Is light source enabled

Simple

Fields of Simple

color: Color

Light color

position: Vec3

Light source position

intensity: f32

Light intensity

enabled: bool

Is light source enabled

Point

Fields of Point

color: Color

Light color

position: Vec3

Light source position

intensity: f32

Light source intencity

enabled: bool

Is light source enabled

constant: f32

Constant light

linear: f32

Linear light

quadratic: f32

Quadratic light

Spot

Fields of Spot

color: Color

Light source color

position: Vec3

Light source position

direction: Vec3

Light source direction

intensity: f32

Light source intensity

enabled: bool

Is light source enabled

cut_off: f32

Light source cut off

outer_cut_off: f32

Light source outer cut off

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Constructs wrapped service

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.