Nodes/lf-nodes/Edge padding
ComfyUI Node

Edge padding

Fill every pixel outside the mask from the nearest pixels inside it (push-pull), so mipmaps and filtering never blend the background into the border of a baked texture or atlas island.

By lucafoscili·Created 2 years ago·Updated 5 days ago· 36
Edge padding
  • image
  • mask
  • ui_widget
  • image
  • receipt
  • image_list
Category✨ LF Nodes/Texture

Inputs (3)

NameTypeDefaultDescription
imageIMAGETexture(s) to pad. Every channel, alpha included, is filled.
maskMASKPixels to keep (above 0.5), such as a bake's UV coverage. One mask for all images or one per image, same H,W.
ui_widgetoptLF_COMPARE[object Object]—

Outputs (3)

NameTypeDescription
imageIMAGEPadded texture batch; pixels inside the mask are unchanged.
receiptJSONlf.edge-padding.v1: covered and padded pixel counts per image.
image_listIMAGEThe same padded textures as an authoritative list.