Set the CullSettings::InhertianceMask to 0x0 as temporary measure till we
work out the best scheme to use w.r.t inhertiance of CullSettins.
This commit is contained in:
@@ -182,6 +182,8 @@ void ShadowMap::init()
|
||||
// create the camera
|
||||
_camera = new osg::Camera;
|
||||
|
||||
_camera->setInheritanceMask(0x0);
|
||||
|
||||
_camera->setReferenceFrame(osg::Camera::ABSOLUTE_RF_INHERIT_VIEWPOINT);
|
||||
|
||||
_camera->setCullCallback(new CameraCullCallback(this));
|
||||
@@ -549,6 +551,8 @@ osg::ref_ptr<osg::Camera> ShadowMap::makeDebugHUD()
|
||||
|
||||
osg::ref_ptr<osg::Camera> camera = new osg::Camera;
|
||||
|
||||
camera->setInheritanceMask(0x0);
|
||||
|
||||
osg::Vec2 size(1280, 1024);
|
||||
// set the projection matrix
|
||||
camera->setProjectionMatrix(osg::Matrix::ortho2D(0,size.x(),0,size.y()));
|
||||
|
||||
Reference in New Issue
Block a user