1
0
Fork 0

The season dictates whether rain stays on the ground or evaproates

This commit is contained in:
Erik Hofman 2023-03-21 13:32:28 +01:00
parent b71b27ea18
commit b16f370135

View file

@ -878,6 +878,7 @@ void FGClimate::set_environment()
_wetness = 12.0*std::max(_gl.precipitation-50.0, 0.0)/990.0;
// clamping term, see https://sourceforge.net/p/flightgear/codetickets/2604/
_wetness *= monsoonal(season(_season_summer, 2.0*MONTH), 0.0, 1.0);
_wetness = pow(sin(atan(SGD_PI*_wetness)), 2.0);
} else {
_wetness = 0.0;