- moved the clipline uniform to the viewpoint buffer.

This was the final one of the per-scene values that could be taken out of the render state.
This commit is contained in:
Christoph Oelckers 2018-06-22 23:49:39 +02:00
commit 82d7e5970f
12 changed files with 35 additions and 107 deletions

View file

@ -79,7 +79,7 @@ void FDrawInfo::ApplyVPUniforms()
if (!(gl.flags & RFL_NO_CLIP_PLANES))
{
if (VPUniforms.mClipHeightDirection != 0.f)
if (VPUniforms.mClipHeightDirection != 0.f || VPUniforms.mClipLine.X > -10000000.0f)
{
glEnable(GL_CLIP_DISTANCE0);
}
@ -90,6 +90,7 @@ void FDrawInfo::ApplyVPUniforms()
}
}
//-----------------------------------------------------------------------------
//
// Setup the modelview matrix