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
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.