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

Trait Implementations

impl Clone for Material
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Material
[src]

Formats the value using the given formatter.

impl PartialEq for Material
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for Material
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more