- fix blinking caused by uninitialized clipping planes

This commit is contained in:
Magnus Norddahl 2019-03-02 14:16:11 +01:00
parent 05a6896d4f
commit f8aa48d053

View file

@ -116,4 +116,10 @@ void main()
// clip planes used for translucency splitting
gl_ClipDistance[1] = worldcoord.y - uClipSplit.x;
gl_ClipDistance[2] = uClipSplit.y - worldcoord.y;
if (uSplitTopPlane == vec4(0.0))
{
gl_ClipDistance[3] = 1;
gl_ClipDistance[4] = 1;
}
}