vrmed
04-25-2005, 08:03 AM
Hi,
I'm trying to use the user clipping planes with a vertex&fragment GLSL program, but it doesn't work.
I have read that you only have to set the gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex;
and that's all, of course, you have to set the clipping planes with glClipPlane (..) and activate it glEnable(GL_CLIP..).
Thanks in advance
I'm trying to use the user clipping planes with a vertex&fragment GLSL program, but it doesn't work.
I have read that you only have to set the gl_ClipVertex = gl_ModelViewMatrix * gl_Vertex;
and that's all, of course, you have to set the clipping planes with glClipPlane (..) and activate it glEnable(GL_CLIP..).
Thanks in advance