Enum dot_vox::MaterialType [−][src]
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.
Unknown(u32, f32)
An unknown material type.
Methods
impl MaterialType
[src]
impl MaterialType
pub fn from_u32(material_type: u32, weight: f32) -> MaterialType
[src]
pub fn from_u32(material_type: u32, weight: f32) -> MaterialType
Instantiates a MaterialType from an identifier and a weight value.
Trait Implementations
impl Debug for MaterialType
[src]
impl Debug for MaterialType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for MaterialType
[src]
impl PartialEq for MaterialType
fn eq(&self, other: &MaterialType) -> bool
[src]
fn eq(&self, other: &MaterialType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &MaterialType) -> bool
[src]
fn ne(&self, other: &MaterialType) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for MaterialType
impl Send for MaterialType
impl Sync for MaterialType
impl Sync for MaterialType