1
0
Fork 0

Add a property /sim/rendering/desert which can be used by the meterials definiton to alter the amount of dessertness based on latitude. It's op to the material definition what to do with it, if at all. This is not a prediction that there is actually desert at that latitude.

This commit is contained in:
Erik Hofman 2021-03-25 11:13:38 +01:00
parent 1ee8b9e568
commit ee503ba89f

View file

@ -934,6 +934,11 @@ void FGClimate::set_environment()
fgSetDouble("/environment/season", 0.0);
}
}
// for material animation
double latitude_deg = _positionLatitudeNode->getDoubleValue();
double desert_pct = std::min( fabs(latitude_deg-23.5)/23.5, 1.0);
fgSetDouble("/sim/rendering/desert", 0.1-0.2*desert_pct);
}
void FGClimate::setEnvironmentUpdate(bool value)