Added SceneData texture as the second colorbuffer when rendering a scene and placed fog data into it

This commit is contained in:
Magnus Norddahl 2016-09-21 02:04:56 +02:00
commit d774136282
8 changed files with 115 additions and 24 deletions

View file

@ -323,7 +323,7 @@ void FGLRenderer::Begin2D()
if (mBuffers->Setup(mScreenViewport.width, mScreenViewport.height, mSceneViewport.width, mSceneViewport.height))
{
if (mDrawingScene2D)
mBuffers->BindSceneFB();
mBuffers->BindSceneFB(false);
else
mBuffers->BindCurrentFB();
}