28 using OpenSim.Framework;
29 using OpenSim.Region.Framework.Interfaces;
30 using OpenSim.Region.Framework.Scenes;
36 #region ITerrainPaintableEffect Members
39 double strength,
double duration,
int startX,
int endX,
int startY,
int endY)
41 strength = TerrainUtil.MetersToSphericalStrength(strength);
45 for (x = startX; x <= endX; x++)
47 for (y = startY; y <= endY; y++)
55 z -= ((x - rx) * (x - rx)) + ((y - ry) * (y - ry));
57 double noise = TerrainUtil.PerlinNoise2D(x / (double) map.
Width, y / (
double) map.Height, 8, 1.0);
60 map[x, y] += noise * z * duration;
void PaintEffect(ITerrainChannel map, bool[,] mask, double rx, double ry, double rz, double strength, double duration, int startX, int endX, int startY, int endY)