4 #include <osg/Geometry>
6 #include <osg/FrameBufferObject>
7 #include <osg/Texture2D>
8 #include <osg/StateAttribute>
11 #include "SkydomeMie.h"
13 namespace osgCloudyDay
24 void Create(osg::Vec3 start, osg::Vec3 end);
26 static void CreateShader();
28 osg::Geode* contrail_obj;
29 static osg::Texture2D* m_tex_contrail;
30 static osg::Program* m_shader;
33 osg::ref_ptr<osg::Vec3Array> m_vertices;
34 osg::ref_ptr<osg::Vec4Array> m_additional;
35 osg::ref_ptr<osg::IndexArray> m_indices;
36 osg::ref_ptr<osg::Geometry> m_geometry;
39 static float timeOfDay;
42 static osg::Vec3 ambientLight_h0;
43 static osg::Vec3 ambientLight_h1;
44 static osg::Vec3 ambientLight_t0;
45 static osg::Vec3 ambientLight_t1;
46 static osg::Matrix3 directionalColors;
52 static osg::Vec3 sunLightColor;
53 static osg::ref_ptr<osg::Texture2D> tex_clouds;
55 static osg::FrameBufferObject* fbo_viewer;
56 static osg::FrameBufferObject* fbo_light;