OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth Edition
by Dave Shreiner, Graham Sellers, John M. Kessenich, Bill M. Licea-Kane
Chapter Summary
In this chapter, we have covered geometry shaders—a shader stage that runs per-primitive, has access to all vertices in the primitive, and can create and destroy geometry as it passes through the OpenGL pipeline. It can even change the types of primitives. The geometry shader can be used for user-controlled culling, geometric transformations, and even sorting algorithms. It provides access to features such as multiple viewports and rendering into texture arrays, three-dimensional textures, and cube maps. The geometry shader can be instanced, which when combined with its other features is an extremely powerful tool. The geometry shader is perhaps the most versatile and flexible shader stage. Geometry shaders even have their own ...
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