Pro Java 9 Games Development Leveraging the JavaFX APIs

(Michael S) #1
Chapter 13 ■ 3D MoDel ShaDer Creation: USing the JavaFX 9 phongMaterial ClaSS

Figure 13-24 shows the Run ➤ Project Java code testing work process; you can see the new game board
square box Box object mapped with the new diffuse color texture map that you just created using GIMP
2.8.22 (or later).


Figure 13-23. Change your diffuseMap Image object instantiation statement to reference your
gameboardsquare.png file


Figure 13-24. We now have a game board square, which will be duplicated around the perimeter (in the next
chapter)

Free download pdf