[][src]Trait pbrt::core::material::Material

pub trait Material {
    fn compute_scattering_functions(
        &self,
        si: &mut SurfaceInteraction,
        mode: TransportMode,
        allow_multiple_lobes: bool
    ); fn bump(
        d: &Arc<dyn Texture<Float> + Send + Sync>,
        si: &mut SurfaceInteraction
    )
    where
        Self: Sized
, { ... } }

Material defines the interface that material implementations must provide.

Required Methods

The method is given a SurfaceInteraction object that contains geometric properties at an intersection point on the surface of a shape and is responsible for determining the reflective properties at the point and initializing some member variables.

Provided Methods

Computing the effect of bump mapping at the point being shaded given a particular displacement texture.

Implementors

impl Material for DisneyMaterial
[src]

impl Material for FourierMaterial
[src]

impl Material for GlassMaterial
[src]

impl Material for HairMaterial
[src]

impl Material for MatteMaterial
[src]

impl Material for MetalMaterial
[src]

impl Material for MirrorMaterial
[src]

impl Material for MixMaterial
[src]

impl Material for PlasticMaterial
[src]

impl Material for SubstrateMaterial
[src]

impl Material for UberMaterial
[src]