* Added 'rescale' command for normalising a terrain between two values
This commit is contained in:
Adam Frisby
2007-04-20 14:49:24 +00:00
parent 84700807c7
commit ae8824985c
2 changed files with 10 additions and 0 deletions

View File

@@ -82,6 +82,11 @@ namespace OpenSim.Terrain
return heights;
}
public void setRange(float min, float max)
{
heightmap.normalise((double)min, (double)max);
}
/// <summary>
/// Loads a file consisting of 256x256 doubles and imports it as an array into the map.
/// </summary>