setup camera Read/Draw Buffer

fix flickering shadows in SingleThread
This commit is contained in:
Julien Valentin 2018-12-19 18:30:26 +01:00 committed by GitHub
parent ea1e832d4d
commit 07e5480b57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -357,6 +357,8 @@ void ParallelSplitShadowMap::init()
{
// create the camera
pssmShadowSplitTexture._camera = new osg::Camera;
pssmShadowSplitTexture._camera->setReadBuffer(GL_BACK);
pssmShadowSplitTexture._camera->setDrawBuffer(GL_BACK);
pssmShadowSplitTexture._camera->setCullCallback(new CameraCullCallback(this));