Contents

init(name:semantic:float4:)

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

Declaration

convenience init(name: String, semantic: MDLMaterialSemantic, float4 value: vector_float4)

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

Return Value

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

Discussion

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

See Also

Creating a Material Property