diff --git a/src/Environment/climate.cxx b/src/Environment/climate.cxx index ac8586495..e83d8b897 100644 --- a/src/Environment/climate.cxx +++ b/src/Environment/climate.cxx @@ -882,6 +882,9 @@ void FGClimate::set_environment() { // https://weatherins.com/rain-guidelines/ _wetness = 12.0*std::max(_gl.precipitation-50.0, 0.0)/990.0; + + // clamping term, see https://sourceforge.net/p/flightgear/codetickets/2604/ + _wetness = pow(sin(atan(SGD_PI*_wetness)), 2.0); } else { _wetness = 0.0; }