Initializer

init(mdlMaterial:)

Creates a material from the specified Model I/O material object.

Declaration

convenience init(mdlMaterial: MDLMaterial)

Parameters

mdlMaterial

A Model I/O material object.

Return Value

A new material.

Discussion

The Model I/O framework provides universal support for import, export, description, and processing of several 3D asset file formats and related resources. (For details, see Model I/O.) The MDLMaterial class is a generic description of surface rendering to be used in rendering 3D object, supporting a superset of the attributes described by the SCNMaterial class.

See Also

Creating a Material

var name: String?

A name associated with the material.