Game dev
Saved & recent

Wrap mode

Related terms: tiling, repeat, clamp, mirror

What happens when a UV goes outside the 0 to 1 range. Repeat starts the texture over, which is how one small brick image covers a whole wall. Mirror flips every other copy to hide the seams. Clamp stretches the edge pixels outward.

A texture made to repeat with no visible seam is called tileable.

Further reading
LearnOpenGL: Textures
repeat source tile 0 1 mirroredrepeat clamp-to-edge
All three planes sample the same texture over u = −1 to 2; dashed lines mark its original 0–1 interval. The vertical coordinate stays in 0–1. Repeat restarts the image, mirrored repeat reverses alternating copies, and clamp-to-edge extends the nearest edge colors. The source is deliberately not seamless.

View in the full Game dev collection