17
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-11-09 03:58:55 +01:00

simulationenvironment: Adjust turbidity values

Turbidity 3 breaks the model at night. Adjust the values to have them
work well all the time and to maximize variation between cloud states.
This commit is contained in:
Sebastian Krzyszkowiak
2026-07-07 01:45:59 +02:00
parent 66a940d4f5
commit 842b768803

View File

@@ -68,15 +68,15 @@ world_environment::compute_weather() const {
Global.AirTemperature > 1 ? "rain:" :
"snow:";
Global.fTurbidity = Global.Overcast <= 0.10 ? 3 :
Global.fTurbidity = Global.Overcast <= 0.10 ? 4 :
Global.Overcast <= 0.20 ? 4 :
Global.Overcast <= 0.30 ? 5 :
Global.Overcast <= 0.40 ? 5 :
Global.Overcast <= 0.50 ? 5 :
Global.Overcast <= 0.60 ? 5 :
Global.Overcast <= 0.70 ? 6 :
Global.Overcast <= 0.80 ? 7 :
Global.Overcast <= 0.90 ? 8 :
Global.Overcast <= 0.50 ? 6 :
Global.Overcast <= 0.60 ? 6 :
Global.Overcast <= 0.70 ? 7 :
Global.Overcast <= 0.80 ? 8 :
Global.Overcast <= 0.90 ? 9 :
9;
}