Overlay: Port image empty shader to use shaderCreateInfo

This should have no functional changes.
This commit is contained in:
2022-05-01 16:18:26 +02:00
parent 1c992cc647
commit d33801e2bf
4 changed files with 52 additions and 20 deletions

View File

@@ -16,6 +16,18 @@ void view_clipping_distances(vec3 wpos)
# endif
}
void view_clipping_distances_bypass()
{
# ifdef USE_WORLD_CLIP_PLANES
gl_ClipDistance[0] = 1.0;
gl_ClipDistance[1] = 1.0;
gl_ClipDistance[2] = 1.0;
gl_ClipDistance[3] = 1.0;
gl_ClipDistance[4] = 1.0;
gl_ClipDistance[5] = 1.0;
# endif
}
/* Kept as define for compiler compatibility. */
# ifdef USE_WORLD_CLIP_PLANES
# define view_clipping_distances_set(c) \