First cut at LOD support in RayTracedTechnique, which lowers the number of samples taken when the view of the volume is changing.

This commit is contained in:
Robert Osfield
2011-03-17 11:49:22 +00:00
parent 127b103edd
commit 307bf7002f
2 changed files with 45 additions and 3 deletions

View File

@@ -44,8 +44,15 @@ class OSGVOLUME_EXPORT RayTracedTechnique : public VolumeTechnique
protected:
virtual ~RayTracedTechnique();
osg::ref_ptr<osg::MatrixTransform> _transform;
typedef std::map<osgUtil::CullVisitor*, osg::Matrix> ModelViewMatrixMap;
OpenThreads::Mutex _mutex;
ModelViewMatrixMap _modelViewMatrixMap;
osg::ref_ptr<osg::StateSet> _lodStateSet;
};
}