Enum dot_vox::MaterialType
[−]
[src]
pub enum MaterialType { Diffuse, Metal(f32), Glass(f32), Emissive(f32), }
The type of a material
Variants
Diffuse
A diffuse material.
Metal(f32)
A metallic material, float indicating the blend between metal and diffuse material.
Glass(f32)
A glass material, float indicating the blend between glass and diffuse material.
Emissive(f32)
An emissive material, float indicating the degree of self-illumination.
Methods
impl MaterialType
[src]
fn from_u32(material_type: u32, weight: f32) -> MaterialType
[src]
Instantiates a MaterialType from an identifier and a weight value.
Trait Implementations
impl Debug for MaterialType
[src]
impl PartialEq for MaterialType
[src]
fn eq(&self, __arg_0: &MaterialType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MaterialType) -> bool
[src]
This method tests for !=
.