Modify Program 12.1 to experiment with various values for inner and outer tessellation levels and observing the

Question:

Modify Program 12.1 to experiment with various values for inner and outer tessellation levels and observing the resulting rendered mesh.

Program 12.1Java/JOGL application public int createShader Program (String vS, String tCS, String tES, String fS) { GL4 glgl.glCompileShader(vShader); gl.glCompileShader(tcShader); gl.glCompileShader(teShader);public void init(GLAuto Drawable drawable) { rendering Program = createShaderProgram("vertShader.glsl",} gl.glPatchParameteri(GL_PATCH_VERTICES, 1); gl.glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);void main(void) { gl_TessLevelOuter[0] gl_TessLevelOuter[1] gl_TessLevelOuter[2] = 6; = 6; = 6; = 6; = 12;Fragment Shader #version 430 out vec4 color; uniform mat4 mvp; void main(void) {color = vec4(1.0, 1.0, 0.0,

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Graphics Programming In OpenGL With JAVA

ISBN: 9781683922193

2nd Edition

Authors: V. Scott Gordon PhD, John L. Clevenger PhD

Question Posted: