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
- 0heightfield A
- 1heightfield B
Parameters 5
modemenuHow B's height combines with A's: add, subtract (A-B), multiply, max (union of mountains), min, replace (B wins), average, difference |A-B|.
amountfloatBlend of the result with A (0 = A unchanged).
maskstringOptional mask layer of A limiting where B applies.
layerstringWhich layer to combine (default 'height'; can be any shared layer).
copy_maskstoggleCopy 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.