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:
Robert Osfield
2003-12-15 23:23:45 +00:00
parent de0253aac7
commit 1158e4605d
5 changed files with 59 additions and 24 deletions

View File

@@ -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(); }