Modify Program 13.1 so that it moves each vertex slightly toward the center of its primitive triangle.

Question:

Modify Program 13.1 so that it moves each vertex slightly toward the center of its primitive triangle. The result should look similar to the exploded torus in Figure 13.5, but without the overall change in torus size.

Program 13.1#version 430 layout (triangles) in; in vec3 varying Normal [ ]; in vec3 varying LightDir[]; in vec3 varyingimage

Figure 13.5www W

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: