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

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).

The type of material this is

Additional property values.

Trait Implementations

impl Debug for Material
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Material
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.