Page 334 OpenGL Super Bible! // Swap the (Web site hosting)
Page 334 OpenGL Super Bible! // Swap the y coordinate positions temp = lastY; lastY = nextY; nextY = temp; } // Flush drawing commands glFlush(); } The WAVEY program has menu options to render just a wireframe image, do flat or smooth shading, and finally do the normal averaging. Figure 9-20 shows this folding image using flat shading, and Figure 9-21 is the same object with the normals averaged. You can see that the second image appears to have a smooth rippling effect across its surface. Figure 9-20 Bent surface with regular surface normals Figure 9-21 Bent surface with surface normals averaged together
If you are searching for cheap webhost for your web application, please visit MySQL5 Web Hosting services.