Game dev
Saved & recent

Cubemap

Related terms: skybox, environment map

Six square textures arranged as the faces of a cube. It is sampled with a direction instead of a UV: "what color is out there, that way?".

A skybox is a cubemap drawn behind everything as the distant background. The same kind of map supplies reflections on shiny surfaces. See reflection probe.

Further reading
LearnOpenGL: Cubemaps
−X +Z +X −Z +Y −Y six square textures −Z −X −Y fold camera direction sampled color
The cross folds into a cube around the camera. A direction from the center picks the color where it meets a face.

View in the full Game dev collection