May 2014
Beginner to intermediate
592 pages
17h 4m
English
This chapter presents an assortment of graphics topics, including skybox rendering, environment mapping, fog, and color blending. The first couple effects share a common theme: They are implemented through texture cubes. And all the material takes you farther along the path of graphics enlightenment (pun intended).
A texture cube (also known as a cube map) is a set of six 2D textures. Each texture corresponds to a face of an axis-aligned cube (typically) centered on the world space origin. These textures can be stored individually or can all reside in the same file using a format such as DDS (discussed in Chapter 3, “Tools of the Trade”). Figure 8.1 shows a texture cube stored in a single file, with ...
Read now
Unlock full access