Contents

init(name:semantic:float3:)

Initializes a material property with a 3-component vector value.

Declaration

convenience init(name: String, semantic: MDLMaterialSemantic, float3 value: vector_float3)

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 3-component floating-point vector value for the material property.

Return Value

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

Discussion

A 3-component vector can also be used to store RGB color values. In this case, color components should be interpreted using the Rec. 709 color space standard.

See Also

Creating a Material Property