add_height_mask_node
Add an altitude mask to a material graph by dropping in a SmoothStep node with world-unit height bounds, for blending layers by height. Connect WorldPosition Z yourself or the mask stays constant.
Instructions
Drop the nodes of an altitude mask into a material graph: a SmoothStep preset with ConstMin=min_height / ConstMax=max_height in world units, for blending a layer in by height (snow above a line, sand below one). It does NOT build a wired chain despite the name: the SmoothStep Value input is left UNCONNECTED and no world-position node is wired, so you must connect WorldPosition Z into it yourself (connect_material_expressions) or the mask stays constant. Use the reply's expression_id and note to find the pin, then re-read the graph as the oracle.
Returns: { material_path, expression_id (the SmoothStep node), min_height, max_height }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pos_x | No | Editor graph X position of the SmoothStep output (default -800) | |
| pos_y | No | Editor graph Y position of the SmoothStep output (default 0) | |
| max_height | Yes | Upper bound (world units) for SmoothStep. Above this the mask is 1. | |
| min_height | Yes | Lower bound (world units) for SmoothStep. Below this the mask is 0. | |
| material_path | Yes | Asset path of the target UMaterial |