Add Stencil Lighting
Signed-off-by: V Meazza <vivina.meazza@lineone.net>
This commit is contained in:
parent
e762551524
commit
00a9151b1a
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