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: String
Name of the material.
ambiant_texture: Option<String>
Path to the ambiant texture.
diffuse_texture: Option<String>
Path to the diffuse texture.
specular_texture: Option<String>
Path to the specular texture.
opacity_map: Option<String>
Path to the opacity map.
ambiant: Vector3<f32>
The ambiant color.
diffuse: Vector3<f32>
The diffuse color.
specular: Vector3<f32>
The specular color.
shininess: f32
The shininess.
alpha: f32
Alpha blending.
Methods
impl MtlMaterial
[src]
fn new_default(name: String) -> MtlMaterial
Creates a new mtl material with a name and default values.
fn new(name: String,
shininess: f32,
alpha: f32,
ambiant: Vector3<f32>,
diffuse: Vector3<f32>,
specular: Vector3<f32>,
ambiant_texture: Option<String>,
diffuse_texture: Option<String>,
specular_texture: Option<String>,
opacity_map: Option<String>)
-> MtlMaterial
shininess: f32,
alpha: f32,
ambiant: Vector3<f32>,
diffuse: Vector3<f32>,
specular: Vector3<f32>,
ambiant_texture: Option<String>,
diffuse_texture: Option<String>,
specular_texture: Option<String>,
opacity_map: Option<String>)
-> MtlMaterial
Creates a new mtl material.
Trait Implementations
impl Clone for MtlMaterial
[src]
fn clone(&self) -> MtlMaterial
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