zFar
The orthogonal plane of the shadow frustum that’s furthest from the spotlight.
Declaration
var zFar: SpotLightComponent.Shadow.ShadowClippingPlane { get set }Discussion
The zFar is the maximum distance between the light and a visible surface for casting shadows.
The spotlight applies the value from attenuationRadius, when you set this property to SpotLightComponent.Shadow.ShadowClippingPlane.automatic, which is its default value. Setting this value to SpotLightComponent.Shadow.ShadowClippingPlane.fixed(_:) is equivalent to assigning it to min(zFar, attenuationRadius).