A collection of material properties that together describe the intended surface appearance for rendering a 3D object.
- iOS 9.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- Model I/O
Each material property (a
MDLMaterial object) provides one specific aspect of appearance, such as opacity, shininess, or surface detail. Use the
material property of a
MDLSubmesh object to associate a material with a 3D object for rendering or to find the material assigned to an object loaded from an asset file.
Sets of certain material properties called scattering functions determine the material’s response to lighting. You can manage these properties together using a material’s
scattering property. Creating a material with the inherited
init() initializer is equivalent to using the
init(name: with a
MDLScattering object whose properties all have default values.