Package javafx.scene

Class DirectionalLight

java.lang.Object
javafx.scene.Node
javafx.scene.LightBase
javafx.scene.DirectionalLight
All Implemented Interfaces:
Styleable, EventTarget

public class DirectionalLight extends LightBase
A light that illuminates an object from a specific direction. The direction is defined by the direction vector property.

DirectionalLights can represent strong light sources that are far enough from the objects they illuminate that their light rays appear to be parallel. Because these light sources are considered to be infinitely far, they cannot be attenuated. The sun is a common light source that can be simulated with this light type.

Since:
18
See Also: