pub enum Material {
Basic(Basic),
CustomBasic(Custom),
Line(Line),
Lambert(Lambert),
Phong(Phong),
Pbr(Pbr),
Sprite(Sprite),
Wireframe(Wireframe),
}
Expand description
Specifies the appearance of a Mesh
.
Variants
Basic(Basic)
Renders triangle meshes with a solid color or texture.
CustomBasic(Custom)
Renders triangle meshes with a custom pipeline with a basic material as its input.
Line(Line)
Renders line strip meshes with a solid color and unit width.
Lambert(Lambert)
Renders triangle meshes with the Gouraud illumination model.
Phong(Phong)
Renders triangle meshes with the Phong illumination model.
Pbr(Pbr)
Renders triangle meshes with a PBR (physically-based rendering) illumination model
Sprite(Sprite)
Renders Sprite
objects with the given texture.
Wireframe(Wireframe)
Renders the edges of a triangle mesh with a solid color.
Trait Implementations
impl Eq for Material
impl StructuralEq for Material
impl StructuralPartialEq for Material
Auto Trait Implementations
impl !RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl !UnwindSafe for Material
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
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Resultwhere
T: Parameter<Self>,
Sets
value
as a parameter of self
.