Enum dae_parser::Shader
source · pub enum Shader {
Blinn(Blinn),
Constant(ConstantFx),
Lambert(Lambert),
Phong(Phong),
}
Expand description
A shader element.
Variants§
Blinn(Blinn)
Produces a specularly shaded surface with a Blinn BRDF approximation.
Constant(ConstantFx)
Produces a constantly shaded surface that is independent of lighting.
Lambert(Lambert)
Produces a diffuse shaded surface that is independent of lighting.
Phong(Phong)
Produces a specularly shaded surface where the specular reflection is shaded according the Phong BRDF approximation.
Implementations§
Trait Implementations§
source§impl From<ConstantFx> for Shader
impl From<ConstantFx> for Shader
source§fn from(v: ConstantFx) -> Self
fn from(v: ConstantFx) -> Self
Converts to this type from the input type.