Terrain node

hf_layer

Combine two heightfields (input 0 = A, input 1 = B), e.g. blend a hand-made mountain onto a noise terrain, or max() two noise passes. B is resampled in world space onto A's grid, so they may differ in resolution/extent (outside B its edge values extend). Output keeps A's grid.

Inputs

Parameters 5

modemenu
Default maxOptions add subtract multiply max min replace average difference

How B's height combines with A's: add, subtract (A-B), multiply, max (union of mountains), min, replace (B wins), average, difference |A-B|.

amountfloat
Default 1Range 0 to 1

Blend of the result with A (0 = A unchanged).

maskstring
Default ""

Optional mask layer of A limiting where B applies.

layerstring
Default height

Which layer to combine (default 'height'; can be any shared layer).

copy_maskstoggle
Default on

Copy mask layers that exist only in B onto A.

Use it

Add it from the node menu (right-click empty graph space or Tab, then type hf_layer), ask the AI for it by name, or add it with a graph op from the API or MCP:

{"op":"add","type":"hf_layer","name":"my_hf_layer","params":{},"inputs":["src"]}

Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.