X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FTime%2Flight.hxx;h=42a9f27d8869cd807900739c1555b14fc32da0c9;hb=cbec277ed4d453cbce6b6f7a62b5cfd9cab90329;hp=6a7500c9a204d7e47224d0f1a06d04defb78e8c1;hpb=b5c46a8d59120f18b0bc268af72ecb6d3a75b3e3;p=flightgear.git diff --git a/src/Time/light.hxx b/src/Time/light.hxx index 6a7500c9a..42a9f27d8 100644 --- a/src/Time/light.hxx +++ b/src/Time/light.hxx @@ -36,6 +36,7 @@ #include +#include #include #include @@ -85,6 +86,7 @@ private: SGVec4f _scene_ambient; SGVec4f _scene_diffuse; SGVec4f _scene_specular; + SGVec4f _scene_chrome; // clear sky, fog and cloud color SGVec4f _sky_color; @@ -94,12 +96,18 @@ private: // clear sky and fog color adjusted for sunset effects SGVec4f _adj_fog_color; SGVec4f _adj_sky_color; + float _saturation; 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]; public: FGLight (); @@ -117,13 +125,13 @@ public: inline const SGVec4f& scene_ambient () const { return _scene_ambient; } inline const SGVec4f& scene_diffuse () const { return _scene_diffuse; } inline const SGVec4f& scene_specular () const { return _scene_specular; } + inline const SGVec4f& scene_chrome () const { return _scene_chrome; } inline const SGVec4f& sky_color () const { return _sky_color; } inline const SGVec4f& cloud_color () const { return _cloud_color; } 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; }