Struct rs_pbrt::materials::substrate::SubstrateMaterial
source · pub struct SubstrateMaterial {
pub kd: Arc<dyn Texture<Spectrum> + Sync + Send>,
pub ks: Arc<dyn Texture<Spectrum> + Sync + Send>,
pub nu: Arc<dyn Texture<Float> + Sync + Send>,
pub nv: Arc<dyn Texture<Float> + Sync + Send>,
pub bump_map: Option<Arc<dyn Texture<Float> + Send + Sync>>,
pub remap_roughness: bool,
}
Fields§
§kd: Arc<dyn Texture<Spectrum> + Sync + Send>
§ks: Arc<dyn Texture<Spectrum> + Sync + Send>
§nu: Arc<dyn Texture<Float> + Sync + Send>
§nv: Arc<dyn Texture<Float> + Sync + Send>
§bump_map: Option<Arc<dyn Texture<Float> + Send + Sync>>
§remap_roughness: bool
Implementations§
source§impl SubstrateMaterial
impl SubstrateMaterial
pub fn new( kd: Arc<dyn Texture<Spectrum> + Send + Sync>, ks: Arc<dyn Texture<Spectrum> + Send + Sync>, nu: Arc<dyn Texture<Float> + Sync + Send>, nv: Arc<dyn Texture<Float> + Sync + Send>, bump_map: Option<Arc<dyn Texture<Float> + Sync + Send>>, remap_roughness: bool ) -> 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 SubstrateMaterial
impl Send for SubstrateMaterial
impl Sync for SubstrateMaterial
impl Unpin for SubstrateMaterial
impl !UnwindSafe for SubstrateMaterial
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