* Fix for Justincc's bug report #768 - Terrain looks rather phallic.

0.6.0-stable
Adam Frisby 2008-03-14 19:50:11 +00:00
parent 1641e4ecb1
commit 4746c26824
1 changed files with 6 additions and 3 deletions

View File

@ -88,9 +88,12 @@ namespace OpenSim.Region.Environment.Modules.Terrain
{
for (y = 0; y < Constants.RegionSize; y++)
{
map[x, y] = 60.0 - // 60 = Sphere Radius
((x - (Constants.RegionSize / 2)) * (x - (Constants.RegionSize / 2)) +
(y - (Constants.RegionSize / 2)) * (y - (Constants.RegionSize / 2)));
map[x, y] = TerrainUtil.PerlinNoise2D(x, y, 3, 0.25) * 10;
double spherFac = TerrainUtil.SphericalFactor(x, y, Constants.RegionSize, Constants.RegionSize, 20);
if (map[x, y] < spherFac)
{
map[x, y] = spherFac;
}
}
}
}