From the following bit of code:
double eqn[4] = {0.0, 1.0, 0.0, 0.0};
glClipPlane(GL_CLIP_PLANE0, eqn);
glEnable(GL_CLIP_PLANE0);
everything that is located below the plane y=0 gets clipped. So how do I clip everything above the plane y=0 ??
From the following bit of code:
double eqn[4] = {0.0, 1.0, 0.0, 0.0};
glClipPlane(GL_CLIP_PLANE0, eqn);
glEnable(GL_CLIP_PLANE0);
everything that is located below the plane y=0 gets clipped. So how do I clip everything above the plane y=0 ??
Originally posted by Rajveer:
[b]From the following bit of code:
double eqn[4] = {0.0, 1.0, 0.0, 0.0};
glClipPlane(GL_CLIP_PLANE0, eqn);
glEnable(GL_CLIP_PLANE0);
everything that is located below the plane y=0 gets clipped. So how do I clip everything above the plane y=0 ??[/b]
Try
double eqn[4] = {0.0, -1.0, 0.0, 0.0};
instead.