Ignore:
Timestamp:
May 28, 2010, 10:18:54 AM (14 years ago)
Author:
Torben Dannhauer
Message:

Update to use osg for sky fog instead OpenGL.

this way the osg fog feature "radialFog" can be used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • osgVisual/include/sky_Silverlining/skySilverLining_skyDrawable.h

    r32 r53  
    2222
    2323#include <osg/Drawable>
     24#include <osg/CoordinateSystemNode>
     25#include <osg/Fog>
     26
    2427#include <osgViewer/Viewer>
    2528#include <OpenThreads/ScopedLock>
     
    4043public:
    4144        skySilverLining_skyDrawable();
    42         skySilverLining_skyDrawable(osgViewer::Viewer* view);
     45        skySilverLining_skyDrawable(osgViewer::Viewer* view, osg::CoordinateSystemNode* csn_);
    4346
    4447    virtual bool isSameKindAs(const Object* obj) const {
     
    5861        void addCloudLayer(cloudLayerSlot *cloudLayerSlot_);
    5962
     63        void shutdown();
     64
    6065protected:
    6166        void setLighting(SilverLining::Atmosphere *atm) const;
     
    7176        mutable std::vector<cloudLayerSlot*> cloudLayerSlots;
    7277        bool newCloudLayersToAdd;
     78        osg::ref_ptr<osg::CoordinateSystemNode> sceneRoot;
    7379};
    7480
Note: See TracChangeset for help on using the changeset viewer.