O'Reilly logo

Real-Time 3D Rendering with DirectX® and HLSL: A Practical Guide to Graphics Programming by Paul Varcholik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 8. Gleaming the Cube

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).

Texture Cubes

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required