public static float BlurredNoise(float stepSize, float x, float y) { int totalIterations = 0; float noiseSum = 0.0f; for (float xx = x - stepSize; xx <= x + stepSize; xx += stepSize) { for (float yy = y - stepSize; yy <= y + stepSize; yy += stepSize) { noiseSum += Noise(xx, yy); totalIterations++; } } return noiseSum / (float)totalIterations; }