Skip to main content

Invert

The Flip. Reverses the values of a mask or float field. "Filled" becomes "Empty," and "1.0" becomes "0.0."

Ports

PortTypeDescription
Input Float or Bool MaskThe source to invert.
OutputSame as InputThe inverted result.

Details

This node is context-aware. If you connect a Bool Mask, it performs a logical NOT. If you connect a Float, it performs 1.0 - value.

Potential Use Cases

  • Negative Space: If you have a mask of "Islands," use Invert to get a mask of "Water."
  • Reverse Gradients: Invert a Distance Field so that the value is 1.0 at the source and 0.0 far away (useful for radial falloff).
  • Exclusion: Invert a "Safe Zone" mask to get the area where it's "Dangerous" to spawn enemies.