Further work on osgText::FadeText implementation.

This commit is contained in:
Robert Osfield
2006-09-19 20:19:29 +00:00
parent 45dc4572a9
commit 87aff3d92c
3 changed files with 128 additions and 24 deletions

View File

@@ -806,8 +806,23 @@ void OsgCameraGroup::frame()
osg::Node* node = getTopMostSceneData();
if (node) node->getBound();
if (_view.valid())
{
double left, right, bottom, top, nearClip, farClip;
getLensParams(left, right, bottom, top, nearClip, farClip);
// pass on the cull settings to the scene views to keep
if (getLensProjectionType()==Camera::Lens::Perspective)
{
_view->setProjectionMatrixAsFrustum(left, right, bottom, top, nearClip, farClip);
}
else
{
_view->setProjectionMatrixAsOrtho(left, right, bottom, top, nearClip, farClip);
}
_view->setViewMatrix(getViewMatrix());
}
// the settings in sync.
for(SceneHandlerList::iterator itr = _shvec.begin();
itr != _shvec.end();