I created a box and applied a texture to it. Is it possible to apply (and how) a different texture to each face of the cube? I have read some solutions but have not fully understood them.
I'm using JavaFX 11.0.2 and openJDK 11
This is the code of the box:
private Box prepareBox() {
PhongMaterial material = new PhongMaterial();
material.setDiffuseMap(new Image(getClass().getResourceAsStream("/res/wood.jpg")));
}