diff --git a/src/graphics/render_geometry.cpp b/src/graphics/render_geometry.cpp index 13d2505c6..6ba414e1a 100644 --- a/src/graphics/render_geometry.cpp +++ b/src/graphics/render_geometry.cpp @@ -979,6 +979,10 @@ void IrrDriver::renderShadows() glEnable(GL_DEPTH_TEST); glDisable(GL_BLEND); m_rtts->getShadowFBO().Bind(); + glEnable(GL_POLYGON_OFFSET_FILL); + glPolygonOffset(1.5, 0.); + glCullFace(GL_BACK); + glEnable(GL_CULL_FACE); glClearColor(1., 1., 1., 1.); glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT); @@ -1020,6 +1024,8 @@ void IrrDriver::renderShadows() } } + glDisable(GL_POLYGON_OFFSET_FILL); + m_post_processing->renderGaussian6BlurLayer(m_rtts->getShadowFBO()); glBindTexture(GL_TEXTURE_2D_ARRAY, m_rtts->getShadowFBO().getRTT()[0]); glGenerateMipmap(GL_TEXTURE_2D_ARRAY);