#include <osg/Switch>
#include <simgear/ephemeris/ephemeris.hxx>
+#include <simgear/math/SGMath.hxx>
#include <simgear/scene/sky/cloud.hxx>
#include <simgear/scene/sky/dome.hxx>
typedef struct {
- SGVec3f view_pos, zero_elev, view_up;
- double lon, lat, alt, spin;
+ SGVec3d pos;
+ SGGeod pos_geod;
+ SGQuatd ori;
+ double spin;
double gst;
double sun_dist;
double moon_dist;
} SGSkyState;
typedef struct {
- SGVec3f sky_color, fog_color;
+ SGVec3f sky_color;
+ SGVec3f adj_sky_color;
+ SGVec3f fog_color;
SGVec3f cloud_color;
double sun_angle, moon_angle;
} SGSkyColor;
*/
inline SGVec4f get_sun_color() { return oursun->get_color(); }
+ /**
+ * Get the current scene color
+ */
+ inline SGVec4f get_scene_color() { return oursun->get_scene_color(); }
+
/**
* Add a cloud layer.
*
*/
virtual void set_3dCloudVisRange(float vis);
+ /** Get 3D cloud wrapping */
+ virtual bool get_3dCloudWrap() const;
+
+ /** Set 3D cloud wrapping
+ * @param wrap whether to wrap 3D clouds
+ */
+ virtual void set_3dCloudWrap(bool wrap);
+
+
};