pub struct MixMaterial {
pub m1: Arc<Material>,
pub m2: Arc<Material>,
pub scale: Arc<dyn Texture<Spectrum> + Sync + Send>,
}
Expand description
The mix material takes two other materials and a texture and uses the value returned by the texture to blend between the two materials at the point being shaded.
Fields
m1: Arc<Material>
m2: Arc<Material>
scale: Arc<dyn Texture<Spectrum> + Sync + Send>
Implementations
sourceimpl MixMaterial
impl MixMaterial
pub fn new(
m1: Arc<Material>,
m2: Arc<Material>,
scale: Arc<dyn Texture<Spectrum> + Send + Sync>
) -> Self
pub fn compute_scattering_functions(
&self,
si: &mut SurfaceInteraction<'_>,
mode: TransportMode,
allow_multiple_lobes: bool,
_material: Option<Arc<Material>>,
_scale: Option<Spectrum>
)
Auto Trait Implementations
impl !RefUnwindSafe for MixMaterial
impl Send for MixMaterial
impl Sync for MixMaterial
impl Unpin for MixMaterial
impl !UnwindSafe for MixMaterial
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