oops
This commit is contained in:
parent
b62ca7963d
commit
4c60315805
@ -152,12 +152,13 @@ void DeferredPipeline::renderGL(Scene *scene)
|
|||||||
// LIGHTING PASS
|
// LIGHTING PASS
|
||||||
m_lightingBuffer->bindFBO();
|
m_lightingBuffer->bindFBO();
|
||||||
|
|
||||||
if(m_skybox != nullptr)
|
|
||||||
m_skybox->renderGL(m_camera);
|
|
||||||
glDepthFunc(GL_LEQUAL);
|
glDepthFunc(GL_LEQUAL);
|
||||||
glEnable(GL_BLEND);
|
glEnable(GL_BLEND);
|
||||||
glBlendFunc(GL_ONE, GL_ONE);
|
glBlendFunc(GL_ONE, GL_ONE);
|
||||||
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
|
||||||
|
if(m_skybox != nullptr)
|
||||||
|
m_skybox->renderGL(m_camera);
|
||||||
|
|
||||||
m_gBuffer->bindTextures();
|
m_gBuffer->bindTextures();
|
||||||
for(SceneIterator<Light*>* lightIt = scene->getLights();
|
for(SceneIterator<Light*>* lightIt = scene->getLights();
|
||||||
lightIt->isValid(); lightIt->next())
|
lightIt->isValid(); lightIt->next())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user