Enum three::material::Material
[−]
[src]
pub enum Material { Basic(Basic), CustomBasic(Custom), Line(Line), Lambert(Lambert), Phong(Phong), Pbr(Pbr), Sprite(Sprite), Wireframe(Wireframe), }
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 Clone for Material
[src]
fn clone(&self) -> Material
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Material
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Hash for Material
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for Material
[src]
fn eq(&self, __arg_0: &Material) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Material) -> bool
[src]
This method tests for !=
.