ECS/Project/Project/Renderers/RendererModules/GBufferModule/GBufferModule.cpp
//	Render to the G Buffer Textures.
Render to the G Buffer Textures.
Render to the G Buffer Textures .
void GBufferModule::renderToGBuffer()
{
	glBindFramebuffer(GL_FRAMEBUFFER, framebufferID);
	glClearColor(0.0, 0.0, 0.0, 0.0);
	glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
	glBindFramebuffer(GL_FRAMEBUFFER, 0);
}
void GBufferModule :: renderToGBuffer ( ) { glBindFramebuffer ( GL_FRAMEBUFFER , framebufferID ) ; glClearColor ( 0.0 , 0.0 , 0.0 , 0.0 ) ; glClear ( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT ) ; glBindFramebuffer ( GL_FRAMEBUFFER , 0 ) ; }
Render to the G Buffer Textures.
Render to the G Buffer Textures .
//	Bind the G-Buffer Framebuffer. //	Render all the objects having a Material with no Transparency. //	Bind the Default Framebuffer.