Mark portals in scene alpha channel for the SSAO pass

This commit is contained in:
Magnus Norddahl 2016-09-04 08:15:29 +02:00
commit 3727c5ed0f
8 changed files with 34 additions and 7 deletions

View file

@ -555,6 +555,21 @@ void FGLRenderBuffers::BindSceneFB()
glBindFramebuffer(GL_FRAMEBUFFER, mSceneFB);
}
//==========================================================================
//
// Binds the scene color texture to the specified texture unit
//
//==========================================================================
void FGLRenderBuffers::BindSceneColorTexture(int index)
{
glActiveTexture(GL_TEXTURE0 + index);
if (mSamples > 1)
glBindTexture(GL_TEXTURE_2D_MULTISAMPLE, mSceneMultisample);
else
glBindTexture(GL_TEXTURE_2D, mPipelineTexture[0]);
}
//==========================================================================
//
// Binds the depth texture to the specified texture unit