The season dictates whether rain stays on the ground or evaproates
This commit is contained in:
parent
b71b27ea18
commit
b16f370135
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue