Instance Property


The data type stored in the material property’s value.


@property(nonatomic, assign) MDLMaterialPropertyType type;


Each semantic value has one or more data types that are appropriate for its value. For example, the MDLMaterialSemanticBaseColor semantic provides per-pixel colors for a rendered surface, so appropriate values for that semantic include scalars (interpreted as a grayscale color), colors, texture images, or URLs that refer to texture images. The MDLMaterialSemanticAmbientOcclusionScale semantic provides a scale factor for the effect of ambient occlusion shading, so an appropriate value is a scalar or a grayscale image that varies that scalar value across the surface of the material.

See Also

Using a Material Property


A descriptive name for the material property.


The semantic meaning for the material property’s value.