Instance Property


The aspect ratio of the light’s shape.


var aspect: Float { get set }


If the light’s type is MDLLightType.discArea, MDLLightType.rectangularArea, or MDLLightType.superElliptical, this property determines the lengths of the shape’s major and minor axes (longer and shorter dimensions) relative to the areaRadius property’s value.

See Also

Managing a Light’s Shape

var areaRadius: Float

The radius, in units of local coordinate space, of the area from which light emanates.

var superEllipticPower: vector_float2

A vector that controls the roundness of a superelliptical light in the x- and y-axis directions.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software