Flood Fill

Utilities

Flood-fills connected regions with selectable 4-way or 8-way tile-aware connectivity. Packed RGBA32F output: R/G carry frac(bbox_min) and bbox_size (16 bits each per axis); B carries a quadtree-derived per-island hash; A reserved. Background = (0,0,0,0). Downstream flood-fill nodes decode these via asuint. See shader for details.

Select a node to adjust its parameters. Double-click a node to inspect.

Inputs

  • input

Parameters

ParameterTypeDefaultRangeDescription
threshold
Threshold
float0.50 to 1Input threshold for region detection.
connectivity
Connectivity
enumfour_wayWhether diagonal foreground pixels belong to the same region.
  • four_way : Connect foreground pixels only across shared edges.
  • eight_way : Connect foreground pixels across shared edges and diagonal corners.

Outputs

  • output (default format: rgba32float)