mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-30 10:03:56 +01:00
textureSet.settings takes uvPadding (3d or 2d) as one undo step and textureSet.inspect reports it. Padding from island edges (2D) is the padding we always had: each texel outside the UV islands repeats the nearest covered texel. Padding across seams (3D) continues the surface across UV seams: a texel just outside a seam takes the texel as far inside the seam's other island (UvSeam finds the edges two triangles share in 3D but not in UV space), up to 32 texels out, and falls back to the nearest covered texel elsewhere. Tangent-space normals always pad in 2D, since they turn with their island. New texture sets pad across seams; projects without the field keep 2D, so they open and export as before.