Another material object from which this material’s properties are derived.
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- Model I/O
When you use the
subscript(_:) method to access material properties, the
MDLMaterial class first checks whether the material itself has a material property with the specified name or semantic. If not, those methods forward to the corresponding method of the other
MDLMaterial object specified by this property.
Use this method to create sets of materials that share most of their material properties but differ in others. For example, you can have a set of objects in the same scene with the same general style of surface appearance (determined by the
scattering property) but with different values for the
base material property.