fixed issue #223 about disabling shadows/ground textures
parent
8522232620
commit
117a5289ea
|
@ -3124,9 +3124,8 @@ void CEngine::Draw3DScene()
|
||||||
|
|
||||||
m_app->StartPerformanceCounter(PCNT_RENDER_TERRAIN);
|
m_app->StartPerformanceCounter(PCNT_RENDER_TERRAIN);
|
||||||
|
|
||||||
// Draw terrain with shadows, if shadows enabled
|
// Draw terrain
|
||||||
if (m_shadowVisible)
|
|
||||||
{
|
|
||||||
m_lightMan->UpdateDeviceLights(ENG_OBJTYPE_TERRAIN);
|
m_lightMan->UpdateDeviceLights(ENG_OBJTYPE_TERRAIN);
|
||||||
|
|
||||||
for (int objRank = 0; objRank < static_cast<int>(m_objects.size()); objRank++)
|
for (int objRank = 0; objRank < static_cast<int>(m_objects.size()); objRank++)
|
||||||
|
@ -3182,9 +3181,10 @@ void CEngine::Draw3DScene()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draws the shadows
|
// Draws the shadows , if shadows enabled
|
||||||
|
if (m_shadowVisible)
|
||||||
DrawShadow();
|
DrawShadow();
|
||||||
}
|
|
||||||
|
|
||||||
m_app->StopPerformanceCounter(PCNT_RENDER_TERRAIN);
|
m_app->StopPerformanceCounter(PCNT_RENDER_TERRAIN);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue