Nodes/comfy-ui-minecraft-pbr/Minecraft PBR - Pack Metal Masks
ComfyUI Node

Minecraft PBR - Pack Metal Masks

Combine per-metal region masks into one metal-id map. Wire the IMAGE output into the labPBR packer's 'metal_mask' input; painted pixels override the F0/metal green channel with that metal's exact id. On overlap, later metals win. Output is an IMAGE (id replicated to RGB) so the discrete F0 ids survive intact.

By jasonjgardner·Created 3 months ago·Updated 3 months ago· 0
Minecraft PBR - Pack Metal Masks
  • custom
  • iron
  • gold
  • aluminum
  • chrome
  • copper
  • lead
  • platinum
  • silver
  • metal_mask
threshold0.50
CategoryMinecraft PBR

Inputs (10)

NameTypeDefaultDescription
thresholdFLOAT0.500–1Mask value above which a pixel is assigned that metal id.
customoptIMAGE,MASKRegion that is custom (labPBR specular-green id 255).
ironoptIMAGE,MASKRegion that is iron (labPBR specular-green id 230).
goldoptIMAGE,MASKRegion that is gold (labPBR specular-green id 231).
aluminumoptIMAGE,MASKRegion that is aluminum (labPBR specular-green id 232).
chromeoptIMAGE,MASKRegion that is chrome (labPBR specular-green id 233).
copperoptIMAGE,MASKRegion that is copper (labPBR specular-green id 234).
leadoptIMAGE,MASKRegion that is lead (labPBR specular-green id 235).
platinumoptIMAGE,MASKRegion that is platinum (labPBR specular-green id 236).
silveroptIMAGE,MASKRegion that is silver (labPBR specular-green id 237).

Outputs (1)

NameTypeDescription
metal_maskIMAGE