pub struct MirrorMaterial {
pub kr: Arc<dyn Texture<Spectrum> + Sync + Send>,
pub bump_map: Option<Arc<dyn Texture<Float> + Send + Sync>>,
}
Expand description
A simple mirror, modeled with perfect specular reflection.
Fields
kr: Arc<dyn Texture<Spectrum> + Sync + Send>
bump_map: Option<Arc<dyn Texture<Float> + Send + Sync>>
Implementations
sourceimpl MirrorMaterial
impl MirrorMaterial
pub fn new(
kr: Arc<dyn Texture<Spectrum> + Send + Sync>,
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 MirrorMaterial
impl Send for MirrorMaterial
impl Sync for MirrorMaterial
impl Unpin for MirrorMaterial
impl !UnwindSafe for MirrorMaterial
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