JavaFX Light.Distant Effect
In this effect, the node is lighten from a distant light source. The distant light source is the one which is kept at some fair distance from the object and the light is attenuated into one direction from the source to the object. In JavaFX, the class javafx.scene.effect.Light.Distant represents the Distant light source. We need to instantiate this class to generate the appropriate light on the node.
The class contains two properties described in the following table.
The class contains two constructors