Chapter 12. Rendering Techniques

What You’ll Learn in This Chapter

• How to light the pixels in your scene

• How to delay shading until the last possible moment

• How to render an entire scene without a single triangle

By this point in the book, you should have a good grasp of the fundamentals of OpenGL. You have been introduced to most of its features and should feel comfortable using it to implement graphics rendering algorithms. In this chapter, we take a look at a few of these algorithms — in particular those that might be interesting in a real-time rendering context. First, we will cover a few basic lighting techniques that will allow you to apply interesting shading to the objects in your scene. Then, we will take a look at some approaches ...

Get OpenGL® SuperBible: Comprehensive Tutorial and Reference, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.