* Bonus commit, added a "terrain fill" command to fill a terrain with a specific height value.
parent
b8da9c3a64
commit
14879fead9
|
@ -260,6 +260,7 @@ namespace OpenSim.Region.Terrain
|
||||||
resultText += "terrain save <type> <filename> - saves a terrain to disk, type can be 'F32', 'F64', 'PNG', 'RAW' or 'HIRAW'\n";
|
resultText += "terrain save <type> <filename> - saves a terrain to disk, type can be 'F32', 'F64', 'PNG', 'RAW' or 'HIRAW'\n";
|
||||||
resultText += "terrain save grdmap <filename> <gradient map> - creates a PNG snapshot of the region using a named gradient map\n";
|
resultText += "terrain save grdmap <filename> <gradient map> - creates a PNG snapshot of the region using a named gradient map\n";
|
||||||
resultText += "terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high\n";
|
resultText += "terrain rescale <min> <max> - rescales a terrain to be between <min> and <max> meters high\n";
|
||||||
|
resultText += "terrain fill <val> - fills a terrain at the specified height\n";
|
||||||
resultText += "terrain erode aerobic <windspeed> <pickupmin> <dropmin> <carry> <rounds> <lowest>\n";
|
resultText += "terrain erode aerobic <windspeed> <pickupmin> <dropmin> <carry> <rounds> <lowest>\n";
|
||||||
resultText += "terrain erode thermal <talus> <rounds> <carry>\n";
|
resultText += "terrain erode thermal <talus> <rounds> <carry>\n";
|
||||||
resultText += "terrain erode hydraulic <rain> <evaporation> <solubility> <frequency> <rounds>\n";
|
resultText += "terrain erode hydraulic <rain> <evaporation> <solubility> <frequency> <rounds>\n";
|
||||||
|
@ -309,6 +310,10 @@ namespace OpenSim.Region.Terrain
|
||||||
SetRange(Convert.ToSingle(args[1]), Convert.ToSingle(args[2]));
|
SetRange(Convert.ToSingle(args[1]), Convert.ToSingle(args[2]));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "fill":
|
||||||
|
heightmap.Fill(Convert.ToDouble(args[1]));
|
||||||
|
break;
|
||||||
|
|
||||||
case "multiply":
|
case "multiply":
|
||||||
heightmap *= Convert.ToDouble(args[1]);
|
heightmap *= Convert.ToDouble(args[1]);
|
||||||
tainted++;
|
tainted++;
|
||||||
|
|
Loading…
Reference in New Issue