Struct dot_vox::Material [−][src]
pub struct Material { pub id: u8, pub material_type: MaterialType, pub properties: MaterialProperties, }
A material used to render this model.
Fields
id: u8
The index into the color palette to apply this material to. As with the indices in the color palette used on the Voxels, this value has been corrected to match the in-memory indices of the color palette (i.e. is 1 less than the value stored in the file).
material_type: MaterialType
The type of material this is
properties: MaterialProperties
Additional property values.
Trait Implementations
impl Debug for Material
[src]
impl Debug for Material
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 Material
[src]
impl PartialEq for Material