public HeightMap createMirrorY() { HeightMap map = new HeightMap(); ushort[] backmap = createReverseYMap(heightMap, pow2); map.setBackend(backmap, pow2, rangeMin, rangeMax); return map; }
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; }