pub struct MatteMaterial {
pub kd: Arc<dyn Texture<Spectrum> + Sync + Send>,
pub sigma: Arc<dyn Texture<Float> + Sync + Send>,
pub bump_map: Option<Arc<dyn Texture<Float> + Send + Sync>>,
}
Expand description
Describes a purely diffuse surface.
Fields
kd: Arc<dyn Texture<Spectrum> + Sync + Send>
sigma: Arc<dyn Texture<Float> + Sync + Send>
bump_map: Option<Arc<dyn Texture<Float> + Send + Sync>>
Implementations
sourceimpl MatteMaterial
impl MatteMaterial
pub fn new(
kd: Arc<dyn Texture<Spectrum> + Send + Sync>,
sigma: Arc<dyn Texture<Float> + Sync + Send>,
bump_map: Option<Arc<dyn Texture<Float> + Sync + Send>>
) -> Self
pub fn create(mp: &mut TextureParams) -> Arc<Material>
pub fn compute_scattering_functions(
&self,
si: &mut SurfaceInteraction<'_>,
_mode: TransportMode,
_allow_multiple_lobes: bool,
_material: Option<Arc<Material>>,
scale_opt: Option<Spectrum>
)
Auto Trait Implementations
impl !RefUnwindSafe for MatteMaterial
impl Send for MatteMaterial
impl Sync for MatteMaterial
impl Unpin for MatteMaterial
impl !UnwindSafe for MatteMaterial
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more