private float[,] GenerateNoise(int width, int height, float x, float y, float scale) { float[,] map = new float[width, height]; const float GENERAL_MAGNITUDE = 100f; for (int X = 0; X < width; X++) { for (int Y = 0; Y < height; Y++) { map[X, Y] = Perlin.Remap(Perlin.Noise((X + x) / GENERAL_MAGNITUDE * scale, (Y + y) / GENERAL_MAGNITUDE * scale)); } } return(map); }