Initializes a material property with a scalar value.
- iOS 9.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
A descriptive name for the material property. For details, see the
The semantic meaning for the material property’s value. For details, see the
The scalar floating-point value for the material property.
Scalar values are appropriate for some semantics, such as the
MDLMaterialSemantic.specularTint semantic (which controls the balance between material and light colors in specular highlighting). Providing a float value for the material property applies that value for all pixels rendered using the material; to provide variation in the semantic’s value across a surface, use a grayscale texture image instead.
Creating a Material Property
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software