mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 19:36:07 +08:00
* Fix for Justincc's bug report #768 - Terrain looks rather phallic.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user