The collection of material properties that define the material’s response to light.
- iOS 9.0+
- macOS 10.11+
- tvOS 9.0+
- Model I/O
MDLScattering object defines a Bidirectional Reflectance Distribution Function (BRDF), which determines how a material interacts with lighting to produce a surface appearance. Though you can access the individual material properties in a scattering function directly, a scattering function object lets you work with the collection of lighting-related material properties as a single unit. Use the
MDLScattering class itself to describe a classical Lambertian/Blinn-Phong shading model, or the
MDLPhysically class to describe a shading model based more closely on real-world physics.
A scattering function determines lighting-related aspects of a material’s appearance, but not all aspects. For features such as opacity and surface deformation, use the methods listed in Working with Individual Material Properties to access the corresponding material properties.