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:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user