Understanding the types of light

There are three types of light source: Distant, Spot, and Point. They all extend the base abstract class Light. A common property for all light types is a color. Note that, despite having a 2D scene, Light requires the third coordinate to locate an imaginary light source. 

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.