A set of material properties that describes a basic shading model for materials, and the superclass for more complex shading models.
- iOS 9.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- Model I/O
The set of material properties that define a material's response to lighting is also called the Bidirectional Reflectance Distribution Function, or BRDF, for surfaces shaded using that
MDLMaterial object. The set of properties defined by the
MDLScattering class itself describes a Lambertian shading model with Blinn-Phong specular response; subclasses can define a set of properties for other shading models.
Creating a new scattering function object with the inherited
init() method creates a set of material properties with useful default values for this shading model.