Exemple #1
0
 public Terrain GenerateTerrain(int mapSize)
 {
     float[,] heights  = GenerateHeights(mapSize, perlinNoise);
     float[,] biomeMap = GenerateBiomeMap(mapSize, biomePerlinNoise);
     Color[] colours = colourGen.GenerateColours(heights, biomeMap, biomeHelper, mapSize);
     return(CreateTerrain(heights, biomeMap, colours));
 }