setup camera Read/Draw Buffer
fix flickering shadows in SingleThread
This commit is contained in:
parent
ea1e832d4d
commit
07e5480b57
@ -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));
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user