diff --git a/gui/dialogs/rendering.xml b/gui/dialogs/rendering.xml
index 773dd26b4..2733c7673 100644
--- a/gui/dialogs/rendering.xml
+++ b/gui/dialogs/rendering.xml
@@ -407,10 +407,13 @@
200
/sim/gui/dialogs/rendering/random-vegetation
Disabled
+ Ultra Low Density
+ Very Low Density
Low Density
Medium Density
High Density
Very High Density
+ Ultra High Density
dialog-apply
random-vegetation
@@ -423,6 +426,16 @@
setprop("/sim/rendering/random-vegetation", 0);
}
+ if (val == "Ultra Low Density") {
+ setprop("/sim/rendering/random-vegetation", 1);
+ setprop("/sim/rendering/vegetation-density", 0.1);
+ }
+
+ if (val == "Low Density") {
+ setprop("/sim/rendering/random-vegetation", 1);
+ setprop("/sim/rendering/vegetation-density", 0.25);
+ }
+
if (val == "Low Density") {
setprop("/sim/rendering/random-vegetation", 1);
setprop("/sim/rendering/vegetation-density", 0.5);
@@ -435,12 +448,17 @@
if (val == "High Density") {
setprop("/sim/rendering/random-vegetation", 1);
- setprop("/sim/rendering/vegetation-density", 4.0);
+ setprop("/sim/rendering/vegetation-density", 2.0);
}
if (val == "Very High Density") {
setprop("/sim/rendering/random-vegetation", 1);
- setprop("/sim/rendering/vegetation-density", 10.0);
+ setprop("/sim/rendering/vegetation-density", 4.0);
+ }
+
+ if (val == "Ultra High Density") {
+ setprop("/sim/rendering/random-vegetation", 1);
+ setprop("/sim/rendering/vegetation-density", 8.0);
}
@@ -1077,14 +1095,27 @@
if (getprop("/sim/rendering/random-vegetation")) {
var density = getprop("/sim/rendering/vegetation-density");
- if (density < 0.99) {
+ if (density < 0.2) {
+ setprop("/sim/gui/dialogs/rendering/random-vegetation", "Ultra Low Density");
+ # 0.1
+ } else if (density < 0.4) {
+ setprop("/sim/gui/dialogs/rendering/random-vegetation", "Very Low Density");
+ # 0.25
+ } else if (density < 0.8) {
setprop("/sim/gui/dialogs/rendering/random-vegetation", "Low Density");
- } else if (density < 1.99) {
+ # 0.5
+ } else if (density < 1.5) {
setprop("/sim/gui/dialogs/rendering/random-vegetation", "Medium Density");
- } else if (density < 4.01) {
+ # 1.0
+ } else if (density < 3.0) {
setprop("/sim/gui/dialogs/rendering/random-vegetation", "High Density");
- } else {
+ # 2.0
+ } else if (density < 6.0) {
setprop("/sim/gui/dialogs/rendering/random-vegetation", "Very High Density");
+ # 4.0
+ } else {
+ setprop("/sim/gui/dialogs/rendering/random-vegetation", "Ultra High Density");
+ # 8.0
}
} else {
setprop("/sim/gui/dialogs/rendering/random-vegetation", "Disabled");