Added support for updating the SceneView projection matrix from the values
of near and far computed during the cull traversal.
This commit is contained in:
@@ -213,6 +213,8 @@ class OSGUTIL_EXPORT CullVisitor : public osg::NodeVisitor, public osg::CullStac
|
||||
|
||||
/** reimplement CullStack's popProjectionMatrix() adding clamping of the projection matrix to the computed near and far.*/
|
||||
virtual void popProjectionMatrix();
|
||||
|
||||
bool clampProjectionMatrix(osg::Matrix& projection, value_type& znear, value_type& zfar) const;
|
||||
|
||||
void setState(osg::State* state) { _state = state; }
|
||||
osg::State* getState() { return _state.get(); }
|
||||
|
||||
Reference in New Issue
Block a user