Contents

init(name:semantic:matrix4x4:)

Initializes a material property with a 4 x 4 matrix value.

Declaration

convenience init(name: String, semantic: MDLMaterialSemantic, matrix4x4 value: matrix_float4x4)

Parameters

  • name:

    A descriptive name for the material property. For details, see the Name property.

  • semantic:

    The semantic meaning for the material property’s value. For details, see the Semantic property.

  • value:

    The 4 x 4 floating-point matrix value for the material property.

Return Value

A new material property object whose type property is MDLMaterialPropertyType.matrix44.

See Also

Creating a Material Property