Using Distant light

The Light.Distant class imitates sunlight coming from a large distance, which you control only by the direction, set by elevation and direction (called the azimuth) angles, measured in degrees. The azimuth's boundaries are 0 and 360, and the elevation's boundaries range from 0 to 90:

The sample of the preceding LightingDemo on GitHub has controls to adjust both angles to see how it works for different values:

Get Mastering JavaFX 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.