Contents

init(name:semantic:url:)

Initializes a material property with a URL value.

Declaration

convenience init(name: String, semantic: MDLMaterialSemantic, url URL: URL?)

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.

  • URL:

    The URL value for the material property—typically, the URL to a texture image.

Return Value

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

Discussion

A renderer (or other software component processing a material) is responsible for loading a texture image from the specified URL.

See Also

Creating a Material Property