OpenGL SuperBible: Comprehensive Tutorial and Reference, Seventh Edition
by Graham Sellers, Richard S. Wright Jr., Nicholas Haemel
Chapter 8. Primitive Processing
What You’ll Learn in This Chapter
• How to use tessellation to add geometric detail to your scenes.
• How to use geometry shaders to process whole primitives and create geometry on the fly.
In the previous chapters, you read about the OpenGL pipeline and were at least briefly introduced to the functions of each of its stages. We’ve covered the vertex shader stage in some detail, including how its inputs are formed and where its outputs go. A vertex shader runs once on each of the vertices you send OpenGL and produces one set of outputs for each. The next few stages of the pipeline seem similar to vertex shaders at first, but can actually be considered primitive processing stages. First, the two tessellation shader ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access