From 00a9151b1a6453e243a4fab1d0147b7820e4f6d2 Mon Sep 17 00:00:00 2001 From: V Meazza Date: Sat, 6 Feb 2010 22:10:09 +0000 Subject: [PATCH] Add Stencil Lighting Signed-off-by: V Meazza --- src/Main/CameraGroup.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Main/CameraGroup.cxx b/src/Main/CameraGroup.cxx index 57371b1d8..954a591e5 100644 --- a/src/Main/CameraGroup.cxx +++ b/src/Main/CameraGroup.cxx @@ -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;