Fix ambient if no shadow are present.

This commit is contained in:
Vincent Lejeune 2014-06-05 01:08:31 +02:00
parent 781820abef
commit 3f619e8e21

View File

@ -1003,7 +1003,7 @@ void IrrDriver::renderLights(unsigned pointlightcount)
m_rtts->getFBO(FBO_COMBINED_TMP1_TMP2).Bind();
}
if (SkyboxCubeMap || !UserConfigParams::m_gi)
if (SkyboxCubeMap && UserConfigParams::m_gi)
irr_driver->getSceneManager()->setAmbientLight(SColor(0, 0, 0, 0));
// Render sunlight if and only if track supports shadow