Skip to main content

Column Surface Band

The Layer Cake. For every vertical column in a mask, this node identifies the "highest" point and creates a new mask at a specific depth beneath it.

Ports

PortTypeDescription
Input Bool MaskThe source mask (e.g., "Solid Ground").
Mask Bool Mask1.0 within the specified depth range, 0.0 elsewhere.

Details

This node is specifically designed for side-scrolling or top-down worlds where you want to identify layers relative to the terrain surface. It scans each column from top to bottom until it hits the first 1 in the input mask.

Parameters

  • Min Depth: The starting depth beneath the surface (0 is the surface itself).
  • Max Depth: The ending depth.

Potential Use Cases

  • Grass/Dirt Layers: Given a "Ground" mask, use this node with a range of 0 - 3 to find the top few tiles of every landmass. You can then use this to paint grass or dirt.
  • Top-Down Foundations: In a top-down game with "Mountains," use this to find the "rim" or "base" of the mountain by selecting tiles just beneath the peak.
  • Surface Decor: Find the exact surface tile (Min: 0, Max: 0) to use as a spawn mask for surface-only objects like trees or rocks.