Enum dot_vox::MaterialType [] [src]

pub enum MaterialType {
    Diffuse,
    Metal(f32),
    Glass(f32),
    Emissive(f32),
}

The type of a material

Variants

A diffuse material.

A metallic material, float indicating the blend between metal and diffuse material.

A glass material, float indicating the blend between glass and diffuse material.

An emissive material, float indicating the degree of self-illumination.

Methods

impl MaterialType
[src]

[src]

Instantiates a MaterialType from an identifier and a weight value.

Trait Implementations

impl Debug for MaterialType
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for MaterialType
[src]

[src]

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

[src]

This method tests for !=.