pub struct Lighting { /* private fields */ }
Implementations§
Source§impl Lighting
impl Lighting
Sourcepub fn ambient(self, value: f64) -> Self
pub fn ambient(self, value: f64) -> Self
Ambient light increases overall color visibility but can wash out the image.
Sourcepub fn diffuse(self, value: f64) -> Self
pub fn diffuse(self, value: f64) -> Self
Represents the extent that incident rays are reflected in a range of angles.
Sourcepub fn face_normals_epsilon(self, value: f64) -> Self
pub fn face_normals_epsilon(self, value: f64) -> Self
Epsilon for face normals calculation avoids math issues arising from degenerate geometry.
Sourcepub fn fresnel(self, value: f64) -> Self
pub fn fresnel(self, value: f64) -> Self
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.
Sourcepub fn roughness(self, value: f64) -> Self
pub fn roughness(self, value: f64) -> Self
Alters specular reflection; the rougher the surface, the wider and less contrasty the shine.
Sourcepub fn specular(self, value: f64) -> Self
pub fn specular(self, value: f64) -> Self
Represents the level that incident rays are reflected in a single direction, causing shine.
Sourcepub fn vertex_normals_epsilon(self, value: f64) -> Self
pub fn vertex_normals_epsilon(self, value: f64) -> Self
Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry.
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