Terrain node
hf_clip
Clamp a layer between min and max, optionally with a soft knee. Use to flatten sea/lake floors (clip_min at water level) or create plateaus/mesas (clip_max).
Inputs
- 0heightfield
Parameters 6
layerstringLayer to clip.
clip_mintoggleClamp values below 'min'.
minfloatLower limit (e.g. sea level / lake floor).
clip_maxtoggleClamp values above 'max'.
maxfloatUpper limit (e.g. plateau level).
softfloatSoft knee width in world units: rounds the transition instead of a hard crease.
Use it
Add it from the node menu (right-click empty graph space or Tab, then type hf_clip), ask the AI for it by name, or add it with a graph op from the API or MCP:
{"op":"add","type":"hf_clip","name":"my_hf_clip","params":{},"inputs":["src"]}Any parameter can also be an expression such as "=sin(F*0.1)". See Parameters & expressions.