Skip to main content

Threshold

The Binary Gate. Converts a float field (0 to 1) into a boolean mask (filled/empty). This is the primary way to define the "solid" parts of your world.

Ports

PortTypeDirectionDescription
Input FloatInputGrayscale noise or distance field.
Output Bool MaskOutputBoolean result (1 if Input >= Threshold, 0 otherwise).

Logic

The threshold node performs a simple comparison for every cell in the map:

  • Filled (1): If Input Value >= Threshold Value.
  • Empty (0): If Input Value < Threshold Value.

Parameters

  • Threshold Value: The cutoff point (0.0 to 1.0).
  • Invert: If enabled, the logic is flipped: cells become "Filled" if the input is below the threshold.

Potential Use Cases

  • Landmass Creation: Feed Perlin Noise into a Threshold to create islands. A threshold of 0.6 creates smaller islands, while 0.4 creates large continents.
  • Path Selection: Use a threshold on a Distance Field to select a specific band around a path.