Struct wavefront_obj::mtl::Material
[−]
[src]
pub struct Material { pub name: String, pub specular_coefficient: f64, pub color_ambient: Color, pub color_diffuse: Color, pub color_specular: Color, pub color_emissive: Option<Color>, pub optical_density: Option<f64>, pub alpha: f64, pub illumination: Illumination, pub uv_map: Option<String>, }
A single material that can be applied to any face. They are generally applied by using the Phong shading model.
Fields
name: String
specular_coefficient: f64
color_ambient: Color
color_diffuse: Color
color_specular: Color
color_emissive: Option<Color>
optical_density: Option<f64>
alpha: f64
illumination: Illumination
uv_map: Option<String>
Trait Implementations
impl Clone for Material
[src]
fn clone(&self) -> Material
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Material
[src]
impl PartialEq for Material
[src]
fn eq(&self, other: &Material) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl PartialOrd for Material
[src]
fn partial_cmp(&self, other: &Material) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more