The Distance Field effect visualizes the distance from each pixel to the nearest visible edge, creating gradient patterns that can be used for advanced design effects.

How it works

Distance Field calculates and visualizes how far each pixel is from the nearest visible edge in your content. This creates a gradient map where pixels closer to edges have lower values, and pixels further away have higher values. The effect offers multiple visualization modes to display this data in different ways.

This effect serves as the foundation for other effects like Advanced Outline and Advanced Shadow, but can also be used on its own for creative design purposes.

Use cases

  • Creating gradient patterns based on shape contours
  • Preparing images for advanced edge-based effects

Controllers

NameTypeDescriptionRange
Max DistanceNumberMaximum distance to calculate1-500
VisualizationSelectHow to display the distance fieldGrayscale/Heatmap/Rainbow
Invert FieldBooleanReverse the distance values-
Normalize FieldBooleanScale values to fit within 0-1 range-
OpacityNumberControls the transparency of the field0-1