Game dev
Saved & recent

UV mapping

Related terms: UVs, texture coordinates, unwrapping

Tells the renderer which part of a 2D image goes on which part of a 3D surface. Each vertex stores a (u, v) pair from 0 to 1 that points into the texture.

Making the UVs is called unwrapping: the model is cut along seams and flattened, like a cardboard box opened up.

Further reading
LearnOpenGL: Textures: texture coordinates
0 1 1 u v texture net seam uv coordinate surfacepoint
The six faces share one checker texture with blue bands. Gold marks the two UV edges that meet at one seam on the cube; violet marks the same texture coordinate and surface point.

View in the full Game dev collection