{
@SuppressWarnings("unused")
float[] hm = tb.getHeightMap();
// generate a terrain texture with 2 textures
ProceduralTextureGenerator pt = new ProceduralTextureGenerator(heightMap);
pt.addTexture(new ImageIcon(getClass().getClassLoader().getResource(
"data/water.jpg")), 0, 60, 100);
pt.addTexture(new ImageIcon(getClass().getClassLoader().getResource(
"jmetest/data/texture/dirt.jpg")), 60, 100, 200);
pt.addTexture(new ImageIcon(getClass().getClassLoader().getResource(
"jmetest/data/texture/highest.jpg")), 100, 200, 380);