Mip-Safe Atlas UV Math
Texture Atlas Padding, Bleed Gutter & Half-Texel UV Calculator
Stop adjacent tiles from bleeding ugly seams across your texture atlases and trim sheets at lower mip levels: compute exact bleed pixels per side, net usable tile resolution, gutter waste percentage, and half-texel UV inset.
Mip-safe bleed gutter minimums for square texture atlases
| Target Mip Level | Downscale Factor | Pad Per Side | Gutter Between Tiles |
|---|---|---|---|
| Mip 1 (1/2 size) | 2× | 2 px | 4 px |
| Mip 2 (1/4 size) | 4× | 4 px | 8 px |
| Mip 3 (1/8 size) | 8× | 8 px | 16 px |
| Mip 4 (1/16 size) | 16× | 16 px | 32 px |
Why texture atlases bleed neighbor colors when zoomed out
Hardware mipmapping averages 2×2 blocks repeatedly across the entire atlas sheet without knowing where your tile boundaries sit. Once mip resolution shrinks past your gutter width, neighboring grass and brick tiles blend together—producing bright lines around every modular wall.
Using half-texel UV inset in custom WebGL and HLSL shaders
Clamping sampled tile UVs inward by half a texel (0.5 / atlasPx) or full bleed inset prevents bilinear filtering from reading neighbor edge pixels even at Mip 0.
Frequently asked questions
What is the trade-off between wider bleed gutters and tile crispness?
Wider gutters prevent bleeding down to deeper mipmaps, but consume net usable pixels inside each grid cell—this calculator shows exact waste % instantly.
Should I use Texture Arrays instead of a 2D Atlas for large tiling terrains?
Yes—if your target engine supports Texture2DArray, each slice mips independently with zero neighbor bleed and native repeat wrapping.
Can I dilate transparent UV islands automatically in the browser?
Yes—open our UV Island Edge Dilation & Texture Bleed Padder to extend edge pixels outward locally.
Why does normal map atlas bleeding look worse than albedo bleeding?
Averaging opposing tangent normals across a seam creates flat dark lighting creases visible across entire silhouettes.