diff options
author | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-26 23:18:57 +0200 |
---|---|---|
committer | Piotr Dziwinski <piotrdz@gmail.com> | 2012-09-26 23:18:57 +0200 |
commit | 80d3a9bff1d5999ec5504b50103be7687672227a (patch) | |
tree | 70a695f4304d1ac10d391b7e5c0c641ff7fc05b5 /src/graphics/engine/engine.cpp | |
parent | 2fa4d7b0db88abcccbda287af10fc336a8dbb910 (diff) | |
download | colobot-80d3a9bff1d5999ec5504b50103be7687672227a.tar.gz colobot-80d3a9bff1d5999ec5504b50103be7687672227a.tar.bz2 colobot-80d3a9bff1d5999ec5504b50103be7687672227a.zip |
Lighting fix (experimental)
- changed fixed light allocation to prioritized per-use basis
- minor refactoring in CPlanet and CWater
Diffstat (limited to 'src/graphics/engine/engine.cpp')
-rw-r--r-- | src/graphics/engine/engine.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/graphics/engine/engine.cpp b/src/graphics/engine/engine.cpp index c170922..80fbebc 100644 --- a/src/graphics/engine/engine.cpp +++ b/src/graphics/engine/engine.cpp @@ -2810,7 +2810,7 @@ void CEngine::Draw3DScene() if (m_shadowVisible) { - m_lightMan->UpdateLightsEnableState(ENG_OBJTYPE_TERRAIN); + m_lightMan->UpdateDeviceLights(ENG_OBJTYPE_TERRAIN); // Draw the terrain @@ -2910,7 +2910,7 @@ void CEngine::Draw3DScene() if (! IsVisible(objRank)) continue; - m_lightMan->UpdateLightsEnableState(m_objects[objRank].type); + m_lightMan->UpdateDeviceLights(m_objects[objRank].type); for (int l3 = 0; l3 < static_cast<int>( p2.next.size() ); l3++) { @@ -2999,7 +2999,7 @@ void CEngine::Draw3DScene() if (! IsVisible(objRank)) continue; - m_lightMan->UpdateLightsEnableState(m_objects[objRank].type); + m_lightMan->UpdateDeviceLights(m_objects[objRank].type); for (int l3 = 0; l3 < static_cast<int>( p2.next.size() ); l3++) { @@ -3041,7 +3041,7 @@ void CEngine::Draw3DScene() } } - m_lightMan->UpdateLightsEnableState(ENG_OBJTYPE_TERRAIN); + m_lightMan->UpdateDeviceLights(ENG_OBJTYPE_NULL); if (m_waterMode) m_water->DrawSurf(); // draws water surface @@ -3117,7 +3117,7 @@ void CEngine::DrawInterface() if (! IsVisible(objRank)) continue; - m_lightMan->UpdateLightsEnableState(m_objects[objRank].type); + m_lightMan->UpdateDeviceLights(m_objects[objRank].type); for (int l3 = 0; l3 < static_cast<int>( p2.next.size() ); l3++) { |