private void GeneratePerlinChunk() { PerlinNoise noise = PerlinNoise.Instance; for (int x = 0; x < WorldGen.chunkSize; x++) { for (int y = 0; y < WorldGen.chunkSize; y++) { tiles[x, y] = WorldTile.GetWorldTile(noise.PerlinNoise2D(location.x + x, location.y + y, 16, WorldGen.octaves), noise.PerlinNoise2D(location.x + x, location.y + y, 0, WorldGen.octaves)); } } }
private void GenerateSimplexChunk() { SimplexNoise noise = SimplexNoise.Instance; for (int x = 0; x < WorldGen.chunkSize; x++) { for (int y = 0; y < WorldGen.chunkSize; y++) { tiles[x, y] = WorldTile.GetWorldTile(noise.SimplexNoise3D(location.x + x, location.y + y, 16, WorldGen.octaves), noise.SimplexNoise3D(location.x + x, location.y + y, 0, WorldGen.octaves)); } } }