zFar
The maximum distance between the light and a visible surface for casting shadows.
Declaration
var zFar: CGFloat { get set }Discussion
A spotlight casts shadows if its castsShadow property is true. If a surface is farther from the light than this distance, shadows are not cast against the surface.
The default value is 100.0.
You can animate changes to this property’s value. See Animating SceneKit Content.