@@ -503,6 +503,7 @@ namespace MWRender
503
503
if (mSamples > 1 )
504
504
{
505
505
fbos[FBO_Multisample] = new osg::FrameBufferObject;
506
+ fbos[FBO_Intercept] = new osg::FrameBufferObject;
506
507
auto colorRB = createFrameBufferAttachmentFromTemplate (
507
508
Usage::RENDER_BUFFER, width, height, textures[Tex_Scene], mSamples );
508
509
if (mNormals && mNormalsSupported )
@@ -511,6 +512,8 @@ namespace MWRender
511
512
Usage::RENDER_BUFFER, width, height, textures[Tex_Normal], mSamples );
512
513
fbos[FBO_Multisample]->setAttachment (osg::FrameBufferObject::BufferComponent::COLOR_BUFFER1, normalRB);
513
514
fbos[FBO_FirstPerson]->setAttachment (osg::FrameBufferObject::BufferComponent::COLOR_BUFFER1, normalRB);
515
+ fbos[FBO_Intercept]->setAttachment (osg::FrameBufferObject::BufferComponent::COLOR_BUFFER1,
516
+ Stereo::createMultiviewCompatibleAttachment (textures[Tex_Normal]));
514
517
}
515
518
auto depthRB = createFrameBufferAttachmentFromTemplate (
516
519
Usage::RENDER_BUFFER, width, height, textures[Tex_Depth], mSamples );
@@ -519,11 +522,8 @@ namespace MWRender
519
522
osg::FrameBufferObject::BufferComponent::PACKED_DEPTH_STENCIL_BUFFER, depthRB);
520
523
fbos[FBO_FirstPerson]->setAttachment (osg::FrameBufferObject::BufferComponent::COLOR_BUFFER0, colorRB);
521
524
522
- fbos[FBO_Intercept] = new osg::FrameBufferObject;
523
525
fbos[FBO_Intercept]->setAttachment (osg::FrameBufferObject::BufferComponent::COLOR_BUFFER0,
524
526
Stereo::createMultiviewCompatibleAttachment (textures[Tex_Scene]));
525
- fbos[FBO_Intercept]->setAttachment (osg::FrameBufferObject::BufferComponent::COLOR_BUFFER1,
526
- Stereo::createMultiviewCompatibleAttachment (textures[Tex_Normal]));
527
527
}
528
528
else
529
529
{
0 commit comments