Instance Property

attenuationStartDistance

The distance from the light source, in units of local coordinate space, at which its illumination begins to diminish.

Declaration

var attenuationStartDistance: Float { get set }

Discussion

At distances less than the start distance, the light’s illumination is at full intensity. At distances greater than the end distance, the light provides no illumination. At distances in between the start and end distance, the attenuationFalloffExponent property defines the transition from full illumination to no illumination.

The default distance is 1.0.

See Also

Managing Attenuation

var attenuationEndDistance: Float

The distance from the light source, in units of local coordinate space, at which its illumination becomes zero.

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