Chapter 6. Blending, Antialiasing, Fog, and Polygon Offset

Chapter Objectives

After reading this chapter, you’ll be able to do the following:

• Blend colors to achieve such effects as making objects appear translucent

• Smooth jagged edges of lines and polygons with antialiasing

• Create scenes with realistic atmospheric effects

• Render rounded (antialiased) points with varying sizes, based upon distance from the viewpoint

• Draw geometry at or near the same depth, but avoid unaesthetic artifacts from intersecting geometry

The preceding chapters have given you the basic information you need to create a computer-graphics scene; you’ve learned how to do the following:

• Draw geometric shapes

• Transform those geometric shapes so that ...

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Versions 3.0 and 3.1, Seventh Edition now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.