28 using OpenSim.Region.Framework.Interfaces;
29 using OpenSim.Region.Framework.Scenes;
39 m_revertmap = revertmap;
42 #region ITerrainPaintableEffect Members
45 double strength,
double duration,
int startX,
int endX,
int startY,
int endY)
47 strength = TerrainUtil.MetersToSphericalStrength(strength);
56 for (x = startX; x <= endX; x++)
58 for (y = startY; y <= endY; y++)
66 z -= ((x - rx) * (x - rx)) + ((y - ry) * (y - ry));
71 map[x, y] = (map[x, y] * (1.0 - z)) + (m_revertmap[x, y] * z);
void PaintEffect(ITerrainChannel map, bool[,] mask, double rx, double ry, double rz, double strength, double duration, int startX, int endX, int startY, int endY)
RevertSphere(ITerrainChannel revertmap)