Struct rustracer::material::SpecularBRDF
source · pub struct SpecularBRDF {
pub pigment: Pigment,
pub threshold_angle_rad: f32,
}
Expand description
A class representing an ideal mirror BRDF.
Fields§
§pigment: Pigment
A generic pigment that implement GetColor
trait.
threshold_angle_rad: f32
A threshold angle in radians.
Trait Implementations§
source§impl Clone for SpecularBRDF
impl Clone for SpecularBRDF
source§fn clone(&self) -> SpecularBRDF
fn clone(&self) -> SpecularBRDF
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpecularBRDF
impl Debug for SpecularBRDF
source§impl Default for SpecularBRDF
impl Default for SpecularBRDF
source§impl Eval for SpecularBRDF
impl Eval for SpecularBRDF
source§impl ScatterRay for SpecularBRDF
impl ScatterRay for SpecularBRDF
Auto Trait Implementations§
impl RefUnwindSafe for SpecularBRDF
impl Send for SpecularBRDF
impl Sync for SpecularBRDF
impl Unpin for SpecularBRDF
impl UnwindSafe for SpecularBRDF
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