pub struct Material {
pub brdf: BRDF,
pub emitted_radiance: Pigment,
}
Expand description
A material with a particular pigment and BRDF.
Fields§
§brdf: BRDF
A BRDF that implement both Eval
and ScatterRay
traits.
emitted_radiance: Pigment
A pigment that implement GetColor
trait.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Material
impl Send for Material
impl Sync for Material
impl Unpin for Material
impl UnwindSafe for Material
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