* Fix for Justincc's bug report #768 - Terrain looks rather phallic.
parent
1641e4ecb1
commit
4746c26824
|
@ -88,9 +88,12 @@ namespace OpenSim.Region.Environment.Modules.Terrain
|
||||||
{
|
{
|
||||||
for (y = 0; y < Constants.RegionSize; y++)
|
for (y = 0; y < Constants.RegionSize; y++)
|
||||||
{
|
{
|
||||||
map[x, y] = 60.0 - // 60 = Sphere Radius
|
map[x, y] = TerrainUtil.PerlinNoise2D(x, y, 3, 0.25) * 10;
|
||||||
((x - (Constants.RegionSize / 2)) * (x - (Constants.RegionSize / 2)) +
|
double spherFac = TerrainUtil.SphericalFactor(x, y, Constants.RegionSize, Constants.RegionSize, 20);
|
||||||
(y - (Constants.RegionSize / 2)) * (y - (Constants.RegionSize / 2)));
|
if (map[x, y] < spherFac)
|
||||||
|
{
|
||||||
|
map[x, y] = spherFac;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue