diff options
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs')
-rw-r--r-- | OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs b/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs index 64e8668..e644a96 100644 --- a/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs +++ b/OpenSim/Region/Environment/Modules/Terrain/TerrainChannel.cs | |||
@@ -88,9 +88,12 @@ namespace OpenSim.Region.Environment.Modules.Terrain | |||
88 | { | 88 | { |
89 | for (y = 0; y < Constants.RegionSize; y++) | 89 | for (y = 0; y < Constants.RegionSize; y++) |
90 | { | 90 | { |
91 | map[x, y] = 60.0 - // 60 = Sphere Radius | 91 | map[x, y] = TerrainUtil.PerlinNoise2D(x, y, 3, 0.25) * 10; |
92 | ((x - (Constants.RegionSize / 2)) * (x - (Constants.RegionSize / 2)) + | 92 | double spherFac = TerrainUtil.SphericalFactor(x, y, Constants.RegionSize, Constants.RegionSize, 20); |
93 | (y - (Constants.RegionSize / 2)) * (y - (Constants.RegionSize / 2))); | 93 | if (map[x, y] < spherFac) |
94 | { | ||
95 | map[x, y] = spherFac; | ||
96 | } | ||
94 | } | 97 | } |
95 | } | 98 | } |
96 | } | 99 | } |