Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1

Chapter 14 ■ 3D MoDel hierarChy Creation: Using priMitives to Create a gaMe BoarD


Copy and paste the five diffuse Image statements and create diffuse6 through 20, as shown in Figure 14-19.

Close the loadImageAssets() method body now that the diffuse Image instantiation is in place, open the
createMaterials() method, and do the exact same thing, copying the first five shader Java statement pairs and
pasting them three more times underneath themselves. Change the numbering portion of each statement
so that you create your Shader6 through Shader20 Java statement pairs. This can all be seen highlighted in
yellow in Figure 14-20.


Figure 14-19. Copy and paste 5 diffuse texture Image instantiations 3 times and create all 20 diffuse Image
objects

Free download pdf