package edu.ups.gamedev.terrain.water;
import com.jme.app.SimpleGame;
import com.jmex.effects.water.HeightGenerator;
import com.jmex.effects.water.ProjectedGrid;
import com.jmex.effects.water.WaterHeightGenerator;
public class Water extends SimpleGame {
public static void main( String[] args ) {
Water w = new Water();
w.setDialogBehaviour(ALWAYS_SHOW_PROPS_DIALOG);
w.start();
}
protected void simpleInitGame() {
WaterHeightGenerator hg = new WaterHeightGenerator();
ProjectedGrid pg = new ProjectedGrid( "Main Water", cam,
100,
100,
1.0f,
hg);
rootNode.attachChild( pg );
}
}