Chapter 6. Textures

Chapter Objectives

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

• Understand what texture mapping can add to your scene.

• Supply texture images in compressed and uncompressed formats.

• Control how a texture image is filtered as it is applied to a fragment.

• Create and manage texture images in texture objects.

• Supply texture coordinates describing what part of the texture image should be mapped onto objects in your scene.

• Perform complex texture operations using multiple textures in a single shader.

• Specify textures to be used for processing point sprites.

The goal of computer graphics, generally speaking, is to determine the colors that make up each part of an image. While it is possible to calculate ...

Get OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.3, Eighth 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.