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.
Auto Trait Implementations§
impl Freeze for Shader
impl RefUnwindSafe for Shader
impl Send for Shader
impl Sync for Shader
impl Unpin for Shader
impl UnwindSafe for Shader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more