pub struct HairMaterial {
pub sigma_a: Option<Arc<dyn Texture<Spectrum> + Sync + Send>>,
pub color: Option<Arc<dyn Texture<Spectrum> + Sync + Send>>,
pub eumelanin: Option<Arc<dyn Texture<Float> + Sync + Send>>,
pub pheomelanin: Option<Arc<dyn Texture<Float> + Sync + Send>>,
pub eta: Arc<dyn Texture<Float> + Sync + Send>,
pub beta_m: Arc<dyn Texture<Float> + Sync + Send>,
pub beta_n: Arc<dyn Texture<Float> + Sync + Send>,
pub alpha: Arc<dyn Texture<Float> + Sync + Send>,
}
Fields
sigma_a: Option<Arc<dyn Texture<Spectrum> + Sync + Send>>
color: Option<Arc<dyn Texture<Spectrum> + Sync + Send>>
eumelanin: Option<Arc<dyn Texture<Float> + Sync + Send>>
pheomelanin: Option<Arc<dyn Texture<Float> + Sync + Send>>
eta: Arc<dyn Texture<Float> + Sync + Send>
beta_m: Arc<dyn Texture<Float> + Sync + Send>
beta_n: Arc<dyn Texture<Float> + Sync + Send>
alpha: Arc<dyn Texture<Float> + Sync + Send>
Implementations
sourceimpl HairMaterial
impl HairMaterial
pub fn new(
sigma_a: Option<Arc<dyn Texture<Spectrum> + Send + Sync>>,
color: Option<Arc<dyn Texture<Spectrum> + Send + Sync>>,
eumelanin: Option<Arc<dyn Texture<Float> + Send + Sync>>,
pheomelanin: Option<Arc<dyn Texture<Float> + Send + Sync>>,
eta: Arc<dyn Texture<Float> + Send + Sync>,
beta_m: Arc<dyn Texture<Float> + Send + Sync>,
beta_n: Arc<dyn Texture<Float> + Send + Sync>,
alpha: Arc<dyn Texture<Float> + Send + Sync>
) -> 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 HairMaterial
impl Send for HairMaterial
impl Sync for HairMaterial
impl Unpin for HairMaterial
impl !UnwindSafe for HairMaterial
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