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.

100% Local Browser Engine · 0 Bytes Uploaded
Instant Deterministic Output
Bleed Gutter Between Tiles16 px8 px per tile side
Net Usable Tile Resolution496 × 496Out of 512 px gross cell (6.2% pad)
Shader Half-Texel UV Inset0.000244Full pad UV inset: 0.003906

Mip-safe bleed gutter minimums for square texture atlases

Target Mip LevelDownscale FactorPad Per SideGutter Between Tiles
Mip 1 (1/2 size)2×2 px4 px
Mip 2 (1/4 size)4×4 px8 px
Mip 3 (1/8 size)8×8 px16 px
Mip 4 (1/16 size)16×16 px32 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.

More free local PBR & normal map tools