Fix ambient if no shadow are present.
This commit is contained in:
parent
781820abef
commit
3f619e8e21
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user