[][src]Struct plotly_types::traces::mesh3d::Lighting

pub struct Lighting { /* fields omitted */ }

Implementations

impl Lighting[src]

pub fn vertexnormalsepsilon(&mut self, vertexnormalsepsilon: f64) -> &mut Self[src]

Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry.

default: 0.000000000001

pub fn facenormalsepsilon(&mut self, facenormalsepsilon: f64) -> &mut Self[src]

Epsilon for face normals calculation avoids math issues arising from degenerate geometry.

default: 0.000001

pub fn ambient(&mut self, ambient: f64) -> &mut Self[src]

Ambient light increases overall color visibility but can wash out the image.

default: 0.8

pub fn diffuse(&mut self, diffuse: f64) -> &mut Self[src]

Represents the extent that incident rays are reflected in a range of angles.

default: 0.8

pub fn specular(&mut self, specular: f64) -> &mut Self[src]

Represents the level that incident rays are reflected in a single direction, causing shine.

default: 0.05

pub fn roughness(&mut self, roughness: f64) -> &mut Self[src]

Alters specular reflection; the rougher the surface, the wider and less contrasty the shine.

default: 0.5

pub fn fresnel(&mut self, fresnel: f64) -> &mut Self[src]

Represents the reflectance as a dependency of the viewing angle; e.g. paper is reflective when viewing it from the edge of the paper (almost 90 degrees), causing shine.

default: 0.2

Trait Implementations

impl Default for Lighting[src]

impl Serialize for Lighting[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.