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
LineBasic
Basic wireframe with specific Color
.
Fields of LineBasic
color: Color |
MeshBasic
Basic material with color, optional Texture
and optional wireframe mode.
Fields of MeshBasic
color: Color | |
map: Option<Texture<[f32; 4]>> | |
wireframe: bool |
MeshLambert
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
color: Color | |
flat: bool |
MeshPhong
Material that uses Phong reflection model.
Fields of MeshPhong
color: Color | |
glossiness: f32 |
Sprite
2D Sprite.
Fields of Sprite
map: Texture<[f32; 4]> |
Trait Implementations
impl Clone for Material
[src]
fn clone(&self) -> Material
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more