Initializer

init(scnMaterial:)

Creates a material object from the specified SceneKit material object.

Declaration

convenience init(scnMaterial: SCNMaterial)

Parameters

material

A SceneKit material object.

Return Value

A new material object.

Discussion

SceneKit is a high-level framework for modeling, animating, and displaying 3D scenes. (For details, see SceneKit.) The SCNMaterial class describes the intended surface appearance of a rendered 3D object, using a subset of the attributes of the Model I/O family of material objects. Use this method to convert a SceneKit material to a Model I/O representation, which you can then process or export.

See Also

Creating a Material