Added overriding of CullSettings::inheritCullSettings() into osg::Camera to

properly inherit the clear colour.
This commit is contained in:
Robert Osfield
2008-06-16 20:22:16 +00:00
parent 4e7dd7f0db
commit 7cfe00d3d9
4 changed files with 22 additions and 2 deletions

View File

@@ -157,8 +157,7 @@ void View::updateSlave(unsigned int i)
slave._camera->setViewMatrix(_camera->getViewMatrix() * slave._viewOffset);
}
slave._camera->inheritCullSettings(*_camera);
if (slave._camera->getInheritanceMask() & osg::CullSettings::CLEAR_COLOR) slave._camera->setClearColor(_camera->getClearColor());
slave._camera->inheritCullSettings(*_camera, slave._camera->getInheritanceMask());
}
bool View::addSlave(osg::Camera* camera, const osg::Matrix& projectionOffset, const osg::Matrix& viewOffset, bool useMastersSceneData)