Instance Property

semantic

The semantic meaning for the material property’s value.

Declaration

@property(nonatomic, assign) MDLMaterialSemantic semantic;

Discussion

A material semantic determines how the material property’s value should be interpreted to produce a specific surface appearance in rendering. For example, the MDLMaterialSemanticBaseColor semantic defines the default color of each pixel on a rendered surface before shading effects are applied.

When Model I/O loads materials from an MDLAsset object, it automatically selects the appropriate standard semantics for the surface rendering descriptions in the asset file.

See Also

Using a Material Property

name

A descriptive name for the material property.

type

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