Working with the Diffuse and Self-Illumination maps

These maps work with color, attaching a provided image, such as a wallpaper, to the surface of a 3D object. SelfIlluminationMap also adds an additional inside glow to the image. 

For example, let's take a map of Earth and put it on a sphere:

It will look as shown in the following screenshots. Note that I've added a rotation to make the results more visible:

The material method I've used here is material.setSelfIlluminationMap(Image bumpImage). See the inline comments for more details:

// chapter12/EarthDemo.java ...

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.