Enum three::Material [] [src]

pub enum Material {
    LineBasic {
        color: Color,
    },
    MeshBasic {
        color: Color,
        map: Option<Texture<[f32; 4]>>,
        wireframe: bool,
    },
    MeshLambert {
        color: Color,
        flat: bool,
    },
    MeshPhong {
        color: Color,
        glossiness: f32,
    },
    Sprite {
        map: Texture<[f32; 4]>,
    },
}

Material is the enhancement of Texture that is used to setup appearance of Mesh.

Variants

Basic wireframe with specific Color.

Fields of LineBasic

Basic material with color, optional Texture and optional wireframe mode.

Fields of MeshBasic

Lambertian diffuse reflection. This technique causes all closed polygons (such as a triangle within a 3D mesh) to reflect light equally in all directions when rendered.

Fields of MeshLambert

Material that uses Phong reflection model.

Fields of MeshPhong

2D Sprite.

Fields of Sprite

Trait Implementations

impl Clone for Material
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Material
[src]

Formats the value using the given formatter.