Instance Property

type

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

Declaration

@property(nonatomic, assign) MDLMaterialPropertyType type;

Discussion

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

name

A descriptive name for the material property.

semantic

The semantic meaning for the material property’s value.