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
Performs the conversion.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more