Enum three::material::Material [] [src]

pub enum Material {
    Basic(Basic),
    CustomBasic(Custom),
    Line(Line),
    Lambert(Lambert),
    Phong(Phong),
    Pbr(Pbr),
    Sprite(Sprite),
    Wireframe(Wireframe),
}

Specifies the appearance of a Mesh.

Variants

Renders triangle meshes with a solid color or texture.

Renders triangle meshes with a custom pipeline with a basic material as its input.

Renders line strip meshes with a solid color and unit width.

Renders triangle meshes with the Gouraud illumination model.

Renders triangle meshes with the Phong illumination model.

Renders triangle meshes with a PBR (physically-based rendering) illumination model

Renders Sprite objects with the given texture.

Renders the edges of a triangle mesh with a solid color.

Trait Implementations

impl Clone for Material
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Material
[src]

[src]

Formats the value using the given formatter. Read more

impl Hash for Material
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

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 !=.

impl Eq for Material
[src]

impl From<Basic> for Material
[src]

[src]

Performs the conversion.

impl From<Custom> for Material
[src]

[src]

Performs the conversion.

impl From<Lambert> for Material
[src]

[src]

Performs the conversion.

impl From<Line> for Material
[src]

[src]

Performs the conversion.

impl From<Phong> for Material
[src]

[src]

Performs the conversion.

impl From<Pbr> for Material
[src]

[src]

Performs the conversion.

impl From<Sprite> for Material
[src]

[src]

Performs the conversion.

impl From<Wireframe> for Material
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Material

impl Sync for Material