Skip to main content

LightComponent

Type Alias LightComponent 

Source
pub type LightComponent = PointLightComponent;
Expand description

For now, our “LightComponent” is a point light.

Aliased Type§

pub struct LightComponent {
    pub intensity: f32,
    pub distance: f32,
    pub color: [f32; 3],
    /* private fields */
}

Fields§

§intensity: f32§distance: f32§color: [f32; 3]

Linear RGB color in 0..1.