Game dev
Saved & recent

Tangent space

Related terms: TBN, tangent, bitangent, object-space normal map

The coordinate system of a point on a surface. One axis is the normal, pointing out. The tangent runs along the texture's U direction and the bitangent along V.

Normal maps store directions in this space: blue is "straight out", red and green are "lean along U or V". That is why they look violet, and why one map works on any surface, even one that bends. The three axes form the TBN matrix that turns the stored value into a real direction for lighting.

Further reading
LearnOpenGL: Normal Mapping
u curve v line normal N tangent T bitangent B texture
On this cylindrical patch, T follows increasing u, B follows increasing v, and N = T × B points outward. The straight tangent touches the curved u line at the marked point. This example uses an orthogonal, right-handed UV layout and unit-length basis vectors; xT + yB + zN transforms a stored tangent-space direction into object space.

View in the full Game dev collection