Type Method

lightWithMDLLight:

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

Declaration

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

See Also

Creating a Light

+ light

Creates a new light object.