Added support for using shaders to render the RTT textures with depth

This commit is contained in:
Robert Osfield
2013-11-26 19:03:46 +00:00
parent 477951b924
commit 1b3290221c
3 changed files with 155 additions and 14 deletions

View File

@@ -17,7 +17,8 @@
#include <osg/Group>
#include <osg/Texture2D>
#include <osgUtil/CullVisitor>
#include <osgVolume/Export>
#include <osgVolume/VolumeTile>
namespace osgVolume {
@@ -35,6 +36,8 @@ class OSGVOLUME_EXPORT VolumeScene : public osg::Group
virtual void traverse(osg::NodeVisitor& nv);
void tileVisited(osg::NodeVisitor* nv, osgVolume::VolumeTile* tile);
protected:
virtual ~VolumeScene();
@@ -48,6 +51,9 @@ class OSGVOLUME_EXPORT VolumeScene : public osg::Group
osg::ref_ptr<osg::Camera> _rttCamera;
osg::ref_ptr<osg::Camera> _postCamera;
osg::ref_ptr<osgUtil::RenderStage> _parentRenderStage;
typedef std::list< osg::NodePath > Tiles;
Tiles _tiles;
protected:
virtual ~ViewData() {}
};