Instance Property

aspect

The aspect ratio of the light’s shape.

Declaration

@property(nonatomic, readwrite) float aspect;

Discussion

If the light’s type is MDLLightTypeDiscArea, MDLLightTypeRectangularArea, or MDLLightTypeSuperElliptical, 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

areaRadius

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

superEllipticPower

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