X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTime%2Flight.hxx;h=75c23ca93c54cfb7d4e834f5356124c0a0178a01;hb=da73dd97d3d0e36b6078728ac39f0b98cae46ff7;hp=f3ecb32e16bf5f8f8c30c23ca2435ca6c36e38f3;hpb=b61f8fba3353b8b77dd1866e230922ccb78daf71;p=flightgear.git diff --git a/src/Time/light.hxx b/src/Time/light.hxx index f3ecb32e1..75c23ca93 100644 --- a/src/Time/light.hxx +++ b/src/Time/light.hxx @@ -89,6 +89,7 @@ private: SGVec4f _scene_chrome; // clear sky, fog and cloud color + SGVec4f _sun_color; SGVec4f _sky_color; SGVec4f _fog_color; SGVec4f _cloud_color; @@ -97,14 +98,23 @@ private: SGVec4f _adj_fog_color; SGVec4f _adj_sky_color; + // input parameters affected by the weather system + float _saturation; + float _scattering; + float _overcast; + double _dt_total; void update_sky_color (); void update_adj_fog_color (); + void updateSunPos(); + // properties for chrome light; not a tie because I want to fire // property listeners when the values change. SGPropertyNode_ptr _chromeProps[4]; + + SGPropertyNode_ptr _sunAngleRad; public: FGLight (); @@ -129,7 +139,6 @@ public: inline const SGVec4f& adj_fog_color () const { return _adj_fog_color; } inline const SGVec4f& adj_sky_color () const { return _adj_sky_color; } - // Sun related functions inline double get_sun_angle () const { return _sun_angle; }