Merge branch 'zan/stencil2'
This commit is contained in:
commit
6989f4fb35
1 changed files with 1 additions and 1 deletions
|
@ -202,7 +202,7 @@ void CameraGroup::update(const osg::Vec3d& position,
|
||||||
camera->setProjectionMatrix(projectionMatrix);
|
camera->setProjectionMatrix(projectionMatrix);
|
||||||
camera->setCullMask(camera->getCullMask()
|
camera->setCullMask(camera->getCullMask()
|
||||||
| simgear::BACKGROUND_BIT);
|
| simgear::BACKGROUND_BIT);
|
||||||
camera->setClearMask(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
camera->setClearMask(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
|
||||||
farCamera->setNodeMask(0);
|
farCamera->setNodeMask(0);
|
||||||
} else {
|
} else {
|
||||||
Matrix nearProj, farProj;
|
Matrix nearProj, farProj;
|
||||||
|
|
Loading…
Reference in a new issue