1
0
Fork 0

Add Stencil Lighting

Signed-off-by: V Meazza <vivina.meazza@lineone.net>
This commit is contained in:
V Meazza 2010-02-06 22:10:09 +00:00 committed by Tim Moore
parent e762551524
commit 00a9151b1a

View file

@ -202,7 +202,7 @@ void CameraGroup::update(const osg::Vec3d& position,
camera->setProjectionMatrix(projectionMatrix);
camera->setCullMask(camera->getCullMask()
| 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);
} else {
Matrix nearProj, farProj;