pub enum Material {
Show 13 variants Disney(Box<DisneyMaterial>), Fourier(Box<FourierMaterial>), Glass(Box<GlassMaterial>), Hair(Box<HairMaterial>), Matte(Box<MatteMaterial>), Metal(Box<MetalMaterial>), Mirror(Box<MirrorMaterial>), Mix(Box<MixMaterial>), Plastic(Box<PlasticMaterial>), Substrate(Box<SubstrateMaterial>), Subsurface(Box<SubsurfaceMaterial>), Translucent(Box<TranslucentMaterial>), Uber(Box<UberMaterial>),
}

Variants

Disney(Box<DisneyMaterial>)

Fourier(Box<FourierMaterial>)

Glass(Box<GlassMaterial>)

Hair(Box<HairMaterial>)

Matte(Box<MatteMaterial>)

Metal(Box<MetalMaterial>)

Mirror(Box<MirrorMaterial>)

Mix(Box<MixMaterial>)

Plastic(Box<PlasticMaterial>)

Substrate(Box<SubstrateMaterial>)

Subsurface(Box<SubsurfaceMaterial>)

Translucent(Box<TranslucentMaterial>)

Uber(Box<UberMaterial>)

Implementations

Material defines the interface that material implementations must provide.

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.

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.