Initializer

init(mdlLight:)

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

Declaration

convenience init(mdlLight: MDLLight)

Parameters

mdlLight

A Model I/O light object.

Return Value

A new light object.

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 MDLLight class is a generic description of a light source in a scene, supporting a superset of the attributes described by the SCNLight class.