How to use custom clipping planes with GLSL ?
i’m setting glClipPlanef(…)
and enable it glEnable(GL_CLIP_PLANE0);
no errors returned - but no effect either
in CG there is a special semantic
so i could declare float Clip0Out : CLP0; as vertex output
and set negative value in vertex shader for all vertices that should be clipped.
But i do not see such a thing in glsl
(for cg i use CG_PROFILE_GPU_VP/CG_PROFILE_GPU_FP on nvidia)
GLSL have something like gl_ClipVertex
but outputing eye space coords to this couses driver to crash
(there is no difference if clipping planes are enabled or disabled)
BTW. now i’m on Radeon HD 4890 (1GB) - so buggy drivers ? (i have latest
(or there is no way to use custom clipping planes on ATI under OpenGL ? :))