Do not render the shadow map when pause blur is active
parent
fef050f6dd
commit
ffd688e2d7
|
@ -3187,9 +3187,6 @@ void CEngine::Render()
|
||||||
color = m_backgroundColorDown;
|
color = m_backgroundColorDown;
|
||||||
|
|
||||||
m_device->SetClearColor(color);
|
m_device->SetClearColor(color);
|
||||||
// Render shadow map
|
|
||||||
if (m_drawWorld && m_shadowMapping)
|
|
||||||
RenderShadowMap();
|
|
||||||
|
|
||||||
// Begin the scene
|
// Begin the scene
|
||||||
m_device->SetRenderState(RENDER_STATE_DEPTH_WRITE, true);
|
m_device->SetRenderState(RENDER_STATE_DEPTH_WRITE, true);
|
||||||
|
@ -3203,6 +3200,10 @@ void CEngine::Render()
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// Render shadow map
|
||||||
|
if (m_drawWorld && m_shadowMapping)
|
||||||
|
RenderShadowMap();
|
||||||
|
|
||||||
UseMSAA(true);
|
UseMSAA(true);
|
||||||
|
|
||||||
DrawBackground(); // draws the background
|
DrawBackground(); // draws the background
|
||||||
|
|
Loading…
Reference in New Issue