1
0
Fork 0

Merge branch 'zan/stencil2'

This commit is contained in:
Tim Moore 2010-05-06 11:12:53 +02:00
commit 6989f4fb35

View file

@ -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;