Framebuffer Objects, Going Beyond the Window. ...................................336
How to Use FBOs ...............................................................................336
Renderbuffer Objects . .......................................................................337
Draw Buffers . ....................................................................................339
Framebuffer Completeness................................................................342
Copying Data in Framebuffers ..........................................................345
Putting It All Together—Using FBOs.................................................346
Rendering to Textures .................................................................................351
Summary .....................................................................................................358
9 Advanced Buffers: Beyond the Basics . ......................................................359
Getting at Your Data . .................................................................................359
Mapping Buffers ................................................................................360
Copying Buffers .................................................................................361
Controlling the Destiny of Your Pixel Shaders;
Mapping Fragment Outputs .....................................................................361
New Formats for a New Hardware Generation . ........................................364
Floats—True Precision at Last!...........................................................364
Multisampling....................................................................................380
Integers . ............................................................................................385
sRGB. .................................................................................................386
Texture Compression . .......................................................................387
Summary .....................................................................................................389
10 Fragment Operations: The End of the Pipeline .........................................391
Scissoring—Cutting Your Geometry Down To Size . .................................392
Multisampling. ...........................................................................................392
Sample Coverage................................................................................393
Sample Mask . ....................................................................................394
Putting It All Together. .....................................................................394
Stencil Operations.......................................................................................399
Depth Testing. ............................................................................................402
Depth Clamp .....................................................................................402
Blending Everything Together....................................................................402
Blend Equation ..................................................................................402
Blend Function ..................................................................................403
Putting It All Together.......................................................................404
Dithering .....................................................................................................406
Logic Ops ....................................................................................................407
Contents xv