Question: Modify Program 14.3 to clip the torus along the horizontal, creating a circular trough. Program 14.3 Java/JOGL application: public void display(GLAutoDrawable drawable) { ... flipLoc
Modify Program 14.3 to clip the torus along the horizontal, creating a circular “trough.”
Program 14.3

Java/JOGL application: public void display(GLAutoDrawable drawable) { ... flipLoc gl.glGetUniform Location (rendering Program, "flipNormal"); gl.glEnable(GL_CLIP_DISTANCEO); // normal drawing of external faces gl.gl Uniform1i(flipLoc, 0); gl.glFrontFace(GL_CCW); gl.glDrawElements(GL_TRIANGLES, num Torus Indices, GL_UNSIGNED_INT, 0);
Step by Step Solution
3.42 Rating (149 Votes )
There are 3 Steps involved in it
To modify Program 143 to clip the torus along the horizontal creating a circular trough you need to ... View full answer
Get step-by-step solutions from verified subject matter experts
