aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-03-05 00:52:35 +0000
committerAdam Frisby2008-03-05 00:52:35 +0000
commitf64611862a46c91f416134146cb53fa720a96ec5 (patch)
tree5032b3c6e85254ec62540f76f7921e47b1f7fb62 /OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs
parentonce more on hgignore, now that I think I understand this (diff)
downloadopensim-SC-f64611862a46c91f416134146cb53fa720a96ec5.zip
opensim-SC-f64611862a46c91f416134146cb53fa720a96ec5.tar.gz
opensim-SC-f64611862a46c91f416134146cb53fa720a96ec5.tar.bz2
opensim-SC-f64611862a46c91f416134146cb53fa720a96ec5.tar.xz
* New Terrain Module (disabled, search for 'usingTerrainModule = false' to reenable)
* *Much* faster terraforming (woot!) * New "Brushes" design, so you can create custom terraforming brushes then apply those inplace of the standard tools. (ie an Erode Brush for example) * New specialised "Flood Brushes" to do large area effects, ie, raise-area, now takes a bitmap rather than repeats the ordinary raise brush a thousand times. * New modular file Load/Save systems -- write importers/exporters for multiple formats without having to hard code the whole thing in. * Coming soon - effects system, ie the old Erosion functions, etc. for one-shot effects.
Diffstat (limited to 'OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs')
-rw-r--r--OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs
index 0471408..776e31f 100644
--- a/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs
+++ b/OpenSim/Region/Environment/Modules/Terrain/PaintBrushes/NoiseSphere.cs
@@ -35,7 +35,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes
35 { 35 {
36 #region ITerrainPaintableEffect Members 36 #region ITerrainPaintableEffect Members
37 37
38 public void PaintEffect(ITerrainChannel map, double rx, double ry, double strength) 38 public void PaintEffect(ITerrainChannel map, double rx, double ry, double strength, double duration)
39 { 39 {
40 int x, y; 40 int x, y;
41 for (x = 0; x < map.Width; x++) 41 for (x = 0; x < map.Width; x++)
@@ -63,7 +63,7 @@ namespace OpenSim.Region.Environment.Modules.Terrain.PaintBrushes
63 } 63 }
64 64
65 if (z > 0.0) 65 if (z > 0.0)
66 map[x, y] += (noise - 0.5) * z; 66 map[x, y] += (noise - 0.5) * z * duration;
67 } 67 }
68 } 68 }
69 } 69 }