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
sourceimpl From<ConstantFx> for Shader
impl From<ConstantFx> for Shader
sourcefn from(v: ConstantFx) -> Self
fn from(v: ConstantFx) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Shader
impl Send for Shader
impl Sync for Shader
impl Unpin for Shader
impl UnwindSafe for Shader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more