[−][src]Struct plotly_types::traces::mesh3d::Lighting
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
Auto Trait Implementations
impl RefUnwindSafe for Lighting
impl Send for Lighting
impl Sync for Lighting
impl Unpin for Lighting
impl UnwindSafe for Lighting
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,