Added new osg::Projection node, and osgUtil::NewCullVisitor which are work

in progress for the new support for controlling the projection matrix from
within the scene graph.

Also Added osg::State::getClippingVolume(), getProjectionMatrix() and
getModelViewMatrix() with allows drawables to access the current projection,
and model view matrices and the view frustum in local coords to the drawable.
This commit is contained in:
Robert Osfield
2002-03-31 16:40:44 +00:00
parent 2786e4c083
commit 3351306d80
24 changed files with 1990 additions and 144 deletions

View File

@@ -569,3 +569,11 @@ void State::haveAppliedAttribute(const StateAttribute::Type type)
as.changed = true;
}
}
ClippingVolume State::getClippingVolume() const
{
ClippingVolume cv;
cv.setToUnitFrustum();
cv.transformProvidingInverse((*_modelView)*(*_projection));
return cv;
}