Higher value for zmin

This commit is contained in:
Vincent Lejeune
2014-11-04 01:55:10 +01:00
parent c93e6c0ee3
commit 2f4edb6183
2 changed files with 3 additions and 3 deletions

View File

@@ -638,7 +638,7 @@ core::matrix4 getTighestFitOrthoProj(const core::matrix4 &transform, const std::
return tmp_matrix;
tmp_matrix.buildProjectionMatrixOrthoLH(left, right,
down, up,
zmin - 30, zmax);
zmin - 100, zmax);
return tmp_matrix;
}

View File

@@ -981,8 +981,8 @@ void IrrDriver::renderShadows()
m_rtts->getShadowFBO().Bind();
glEnable(GL_POLYGON_OFFSET_FILL);
glPolygonOffset(1.5, 0.);
glCullFace(GL_BACK);
glEnable(GL_CULL_FACE);
// glCullFace(GL_BACK);
// glEnable(GL_CULL_FACE);
glClearColor(1., 1., 1., 1.);
glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);