A texture map is a two-dimensional image or data grid that a renderer samples through UV coordinates to vary a surface property, such as color, roughness or apparent relief, across a 3D model. In texturing & materials, the term covers every image that feeds a material input, from the visible albedo to purely numeric data that the viewer never sees directly.
The idea separates geometric complexity from surface detail. A low-polygon mesh can look like weathered brick or scratched steel because thousands of small variations live in pixels, called texels, rather than in vertices. Texture maps are therefore central to 3D graphics & animation, from real-time games to film rendering.
How a renderer samples a texture map
A renderer reads a texture map by converting each shading point into a UV coordinate and looking up the matching texel. The mesh stores UV coordinates per vertex, the rasterizer or ray tracer interpolates them across each triangle, and the shader fetches a value at the resulting position in the range 0 to 1 on both axes.
Because a screen pixel rarely matches one texel exactly, the lookup is filtered. Bilinear filtering blends the four nearest texels, while mipmapping stores progressively halved copies of the image so that distant surfaces sample a smaller version and avoid shimmering. Anisotropic filtering takes extra samples along the direction of stretch, which keeps floors and roads sharp at grazing angles.
The table below summarizes the main sampling controls and what each one affects.
| Control | Typical options | Effect on the result |
|---|---|---|
| Filtering | Nearest, bilinear, trilinear | Smoothness between texels |
| Mipmapping | On or off, level bias | Aliasing at a distance |
| Anisotropy | 1x to 16x | Sharpness at grazing angles |
| Wrap mode | Repeat, clamp, mirror | Behavior outside 0 to 1 |
| Color space | sRGB or linear (non-color) | Correct math in shading |
Types of texture maps in a PBR material
Each texture map drives one material input, and a physically based material usually combines several of them. The albedo map supplies base color, while the others describe how light interacts with the surface. Each listed map type has its own detailed entry; this overview shows how they divide the work.
| Map type | Data stored | Color space | Material input |
|---|---|---|---|
| Albedo map | Base color without lighting | sRGB | Base color |
| Normal map | Tangent-space normal vectors | Linear | Shading normal |
| Roughness map | Microsurface spread, 0 to 1 | Linear | Roughness |
| Metallic map | Metal or dielectric mask | Linear | Metallic |
| Ambient occlusion map | Cavity shadowing | Linear | Diffuse attenuation |
| Displacement map | Height offset | Linear | Geometry or parallax |
The most frequent technical error is a wrong color space assignment. Color maps are stored with an sRGB transfer curve, whereas data maps must be read as linear, non-color values. If a roughness map is decoded as sRGB, mid-gray values shift and the surface appears noticeably glossier or duller than intended.
Production pipelines often pack several grayscale maps into one RGB image, for example occlusion in red, roughness in green and metallic in blue. Channel packing cuts texture memory and sampler count, but every tool in the chain must agree on the channel order.
Resolution, bit depth and texel density
A texture map’s resolution and bit depth decide how much detail it can hold and how much memory it consumes. Sizes are usually powers of two, such as 1024, 2048 or 4096 pixels per side, because mipmap chains and GPU compression formats work most efficiently with them.
Resolution alone does not guarantee sharpness. What matters on screen is texel density, the number of texels per unit of surface, which must stay consistent across neighboring assets so that a door and its wall look equally crisp. Bit depth matters for smooth gradients: 8 bits per channel suit color, while height and displacement data often need 16-bit or 32-bit float to avoid stepping.
| Purpose | Common format | Bit depth | Reason |
|---|---|---|---|
| Real-time color | BC7 or ASTC compressed | 8-bit | Low memory, GPU decoding |
| Real-time normals | BC5 two-channel | 8-bit | Preserves vector precision |
| Film color | EXR or TIFF | 16-bit half | Wide grading latitude |
| Displacement | EXR | 32-bit float | No banding in height |
| Masks | PNG or packed channel | 8-bit | Simple values, small size |
Large assets in film and high-end games exceed what one image can hold, so artists spread a model across several tiles with the UDIM convention, each tile carrying its own texture set at full resolution.
Texture maps compared with procedural and vertex data
A texture map is one of three common ways to vary a surface, and choosing between them depends on resolution needs, memory and editability. Image textures store explicit, painted or scanned detail; procedural textures compute values mathematically at render time; vertex attributes store values only at mesh vertices.
| Approach | Strength | Weakness | Best fit |
|---|---|---|---|
| Image texture map | Unique, art-directed detail | Fixed resolution, needs UVs | Hero assets, scanned surfaces |
| Procedural texture | Resolution independent, tiny | Costly to evaluate, hard to paint | Noise, wood, large terrain |
| Vertex color | No UVs, nearly free | Detail limited by mesh density | Blending masks, tinting |
| Triplanar projection | No UV seams | Blending artifacts on curves | Rocks, environment props |
In practice these approaches are combined rather than exclusive. A common setup uses a tileable texture for base detail, a procedural mask for variation and a baked occlusion map to ground the object, which keeps memory low without making repetition obvious.
Common problems and how to fix them
Most texture map defects trace back to UV layout, filtering or data interpretation rather than to the image content itself. The list below covers the problems that experienced texture artists check first.
- Visible seams: texels bleed across UV island borders when mipmaps shrink; add padding or edge dilation of 8 to 16 pixels.
- Inverted relief: normal maps follow either the OpenGL or DirectX green-channel convention; flip the green channel when bumps appear reversed.
- Stretching: uneven UV scale causes blurred or smeared areas; re-unwrap and equalize texel density.
- Obvious tiling: a repeating pattern becomes visible over large areas; break it with detail maps, decals or noise masks.
- Baked lighting in albedo: shadows painted into color double up with real lighting; keep albedo free of lighting information.
Stripped to the essentials
A texture map is a picture wrapped around a 3D object, a bit like wrapping paper around a gift box. The object provides the shape, and the picture provides the look: wood grain, rust, paint or skin.
Some of these pictures are not meant to be seen as images at all. They are instructions stored as pixels, telling the computer where a surface is shiny, where it is rough and where it should seem bumpy. The key idea is simple: detail lives in images, so the shape itself can stay light and fast to draw.
Where it is applied
A game studio prepares a wooden supply crate for an open-world title. The modeler builds a mesh of about 800 triangles and unwraps it so the six faces share one UV square. A texture artist then paints a 2048 by 2048 texture set: albedo for the stained planks, a normal map for the grain and nail heads, and a packed image holding occlusion, roughness and metallic data for the iron corners.
The color map is compressed to BC7 and the normal map to BC5, giving roughly 5 MB of GPU memory with mipmaps. In the engine, the crate reads as a detailed, worn object at close range while costing little to render, and dozens of copies fill a warehouse without straining the frame budget.