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:
parent
1ee8b9e568
commit
ee503ba89f
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue