- mirror clip planes moved - not working yet.

This commit is contained in:
Christoph Oelckers 2018-06-22 22:45:05 +02:00
commit 80a9028938
9 changed files with 30 additions and 49 deletions

View file

@ -76,6 +76,18 @@ void FDrawInfo::ApplyVPUniforms()
{
VPUniforms.CalcDependencies();
GLRenderer->mShaderManager->ApplyMatrices(&VPUniforms, NORMAL_PASS);
if (!(gl.flags & RFL_NO_CLIP_PLANES))
{
if (VPUniforms.mClipHeightDirection != 0.f)
{
glEnable(GL_CLIP_DISTANCE0);
}
else
{
glDisable(GL_CLIP_DISTANCE0);
}
}
}
//-----------------------------------------------------------------------------