Type Method

materialWithMDLMaterial:

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

Declaration

+ (instancetype)materialWithMDLMaterial:(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

+ material

Creates a new material object.

name

A name associated with the material.