pub struct Lighting { /* private fields */ }
Implementations§
Source§impl Lighting
impl Lighting
Sourcepub fn vertexnormalsepsilon(&mut self, vertexnormalsepsilon: f64) -> &mut Self
pub fn vertexnormalsepsilon(&mut self, vertexnormalsepsilon: f64) -> &mut Self
Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry.
default: 0.000000000001
Sourcepub fn facenormalsepsilon(&mut self, facenormalsepsilon: f64) -> &mut Self
pub fn facenormalsepsilon(&mut self, facenormalsepsilon: f64) -> &mut Self
Epsilon for face normals calculation avoids math issues arising from degenerate geometry.
default: 0
Sourcepub fn ambient(&mut self, ambient: f64) -> &mut Self
pub fn ambient(&mut self, ambient: f64) -> &mut Self
Ambient light increases overall color visibility but can wash out the image.
default: 0.8
Sourcepub fn diffuse(&mut self, diffuse: f64) -> &mut Self
pub fn diffuse(&mut self, diffuse: f64) -> &mut Self
Represents the extent that incident rays are reflected in a range of angles.
default: 0.8
Sourcepub fn specular(&mut self, specular: f64) -> &mut Self
pub fn specular(&mut self, specular: f64) -> &mut Self
Represents the level that incident rays are reflected in a single direction, causing shine.
default: 0.05
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lighting
impl RefUnwindSafe for Lighting
impl Send for Lighting
impl Sync for Lighting
impl Unpin for Lighting
impl UnwindSafe for Lighting
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more