Mask / Stencil node

Uses one input as a stencil that cuts the other.

When to use it

Show a shader only inside a shape, or hide everything outside a camera silhouette.

Ports and parameters

Inputs: base, mask. Outputs: out. Parameters: mode, invert, threshold, softness.