June 2013
Beginner
352 pages
9h 5m
English
A correctly simulated water surface reflects the scene around it—or to be more precise, it reflects everything attached to a specific scene node that you supply.
Main.java and name the class WaterSimple.java. Remember to also refactor the first line of the main() method to the following:WaterSimple app = new WaterSimple();
private Node reflectedScene;
private Vector3f lightDir =
new Vector3f(-0.39f, -0.32f, -0.74f);DirectionalLight. public void simpleInitApp() {
DirectionalLight dl = new DirectionalLight();
dl.setDirection(lightDir);
rootNode.addLight(dl);reflectedScene ...Read now
Unlock full access