From 3f619e8e218dd3cf5f275b741e48c77486dddc35 Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Thu, 5 Jun 2014 01:08:31 +0200 Subject: [PATCH] Fix ambient if no shadow are present. --- src/graphics/render.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/graphics/render.cpp b/src/graphics/render.cpp index c9097cd43..58811553c 100644 --- a/src/graphics/render.cpp +++ b/src/graphics/render.cpp @@ -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