A set of material properties that describes a physically realistic shading model for materials.
- iOS 9.0+
- macOS 10.11+
- 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 properties defined by this class, along with some properties inherited from the superclass
MDLScattering, describe a shading model that more closely simulates real-world lighting physics than traditional shading models. (This shading model is similar to those used in recent game engines and feature films.)
The valid range for each material property in this shading function is
1, inclusive. 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.