Enum dae_parser::LightKind
source · pub enum LightKind {
Ambient(AmbientLight),
Directional(DirectionalLight),
Point(Box<PointLight>),
Spot(Box<SpotLight>),
}
Expand description
The kind of light being described.
Variants§
Ambient(AmbientLight)
Describes an ambient light source.
Directional(DirectionalLight)
Describes a directional light source.
Point(Box<PointLight>)
Describes a point light source.
Spot(Box<SpotLight>)
Describes a spot light source.
Implementations§
Trait Implementations§
source§impl From<AmbientLight> for LightKind
impl From<AmbientLight> for LightKind
source§fn from(v: AmbientLight) -> Self
fn from(v: AmbientLight) -> Self
Converts to this type from the input type.
source§impl From<DirectionalLight> for LightKind
impl From<DirectionalLight> for LightKind
source§fn from(v: DirectionalLight) -> Self
fn from(v: DirectionalLight) -> Self
Converts to this type from the input type.
source§impl From<PointLight> for LightKind
impl From<PointLight> for LightKind
source§fn from(v: PointLight) -> Self
fn from(v: PointLight) -> Self
Converts to this type from the input type.