public float[,] Generate( int width, int height )
{
float[,] texture = new float[height, width];
for ( int y = 0; y < height; y++ )
{
for ( int x = 0; x < width; x++ )
{
texture[y, x] =
Math.Min( 1.0f,
(float) Math.Abs( noise.Function2D( x + r, y + r ) )
);
}
}
return texture;
}