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.