Struct kiss3d::loader::mtl::MtlMaterial [] [src]

pub struct MtlMaterial {
    pub name: String,
    pub ambiant_texture: Option<String>,
    pub diffuse_texture: Option<String>,
    pub specular_texture: Option<String>,
    pub opacity_map: Option<String>,
    pub ambiant: Vector3<f32>,
    pub diffuse: Vector3<f32>,
    pub specular: Vector3<f32>,
    pub shininess: f32,
    pub alpha: f32,
}

Material informations read from a .mtl file.

Fields

Name of the material.

Path to the ambiant texture.

Path to the diffuse texture.

Path to the specular texture.

Path to the opacity map.

The ambiant color.

The diffuse color.

The specular color.

The shininess.

Alpha blending.

Methods

impl MtlMaterial
[src]

Creates a new mtl material with a name and default values.

Creates a new mtl material.

Trait Implementations

impl Clone for MtlMaterial
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more