Added support for multiple colour buffers into osg::CameraNode/osgUtil::CullVisitor

This commit is contained in:
Robert Osfield
2005-07-19 20:01:00 +00:00
parent 8dd013171c
commit 7b23cf930e
2 changed files with 11 additions and 3 deletions

View File

@@ -1198,7 +1198,7 @@ void CullVisitor::apply(osg::CameraNode& camera)
}
default:
{
fbo->setAttachment(GL_COLOR_ATTACHMENT0_EXT, osg::FrameBufferAttachment(attachment));
fbo->setAttachment(GL_COLOR_ATTACHMENT0_EXT+(buffer-osg::CameraNode::COLOR_BUFFER0), osg::FrameBufferAttachment(attachment));
colorAttached = true;
break;
}