Merge branch 'zan/stencil2' into next
This commit is contained in:
commit
571f7301f2
2 changed files with 3 additions and 1 deletions
|
@ -163,6 +163,8 @@
|
||||||
|
|
||||||
#define NOMINMAX 1
|
#define NOMINMAX 1
|
||||||
|
|
||||||
|
#define HAVE_CULLSETTINGS_CLEAR_MASK 1
|
||||||
|
|
||||||
#ifndef ENABLE_AUDIO_SUPPORT
|
#ifndef ENABLE_AUDIO_SUPPORT
|
||||||
#define ENABLE_AUDIO_SUPPORT
|
#define ENABLE_AUDIO_SUPPORT
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -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