28 using OpenSim.Framework;
29 using OpenSim.Region.Framework.Interfaces;
30 using OpenSim.Region.Framework.Scenes;
36 #region ITerrainFloodEffect Members
39 int startX,
int endX,
int startY,
int endY)
42 for (x = startX; x <= endX; x++)
44 for (y = startY; y <= endY; y++)
48 double noise = TerrainUtil.PerlinNoise2D((double) x / map.
Width, (
double) y / map.Height, 8, 1.0);
49 map[x, y] += noise * strength;
void FloodEffect(ITerrainChannel map, bool[,] fillArea, double strength, int startX, int endX, int startY, int endY)