Chapter 9. Fragment Processing and the Framebuffer

What You’ll Learn in This Chapter

• How data is passed into fragment shaders, how to control the way the data is sent there, and what to do with it once the data gets there.

• How to create your own framebuffers and control the format of the data that they store.

• How to produce more than one output from a single fragment shader.

• How to get data out of your framebuffer and into textures, buffers, and your application’s memory.

This chapter is all about the back end—everything that happens after rasterization. Here we will take an in-depth look at some of the interesting things you can do with a fragment shader, and we consider what happens to your data once it leaves the fragment shader and ...

Get OpenGL SuperBible: Comprehensive Tutorial and Reference, Seventh 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.