Struct three::material::Lambert [] [src]

pub struct Lambert {
    pub color: Color,
    pub flat: bool,
}

Parameters for a Lamberian diffusion reflection model.

Renders triangle meshes with the Gouraud illumination model.

Fields

Solid color applied in the absense of map.

Default: WHITE.

Specifies whether lighting should be constant over faces.

Default: false (lighting is interpolated across faces).

Trait Implementations

impl Clone for Lambert
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for Lambert
[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 Debug for Lambert
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for Lambert
[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 Lambert
[src]

impl Default for Lambert
[src]

[src]

Returns the "default value" for a type. Read more

impl From<Lambert> for Material
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Lambert

impl Sync for Lambert