Isosurface.SimplexNoise.BlurredNoise C# (CSharp) Method

BlurredNoise() public static method

public static BlurredNoise ( float stepSize, float x, float y ) : float
stepSize float
x float
y float
return float
        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;
        }

Same methods

SimplexNoise::BlurredNoise ( float stepSize, float x, float y, float z, float w ) : float