Esempio n. 1
0
 public HeightMap createMirrorY()
 {
     HeightMap map = new HeightMap();
     ushort[] backmap = createReverseYMap(heightMap, pow2);
     map.setBackend(backmap, pow2, rangeMin, rangeMax);
     return map;
 }
Esempio n. 2
0
 public static HeightMap generateHeightMap(int pow2, float rangeMin, float rangeMax)
 {
     PerlinNoise2D noise = new PerlinNoise2D();
     ushort[] heightMap = noise.createMap(6);
     HeightMap map = new HeightMap();
     map.setBackend(heightMap, pow2, rangeMin, rangeMax);
     return map;
 }