add_slope_mask_node
Adds a slope mask to a UE material graph using SmoothStep and OneMinus nodes; you must wire VertexNormalWS manually to activate it.
Instructions
Drop the two nodes of a slope mask into a material graph: a SmoothStep preset with ConstMin=min_slope / ConstMax=max_slope, plus a downstream node whose output is the mask (intended 1 on flat ground, 0 on vertical walls). It does NOT build a wired chain despite the name: no VertexNormalWS node is created and both inputs are left UNCONNECTED, so until you wire VertexNormalWS.B into the SmoothStep Value pin yourself (connect_material_expressions) the mask evaluates to a constant. The reply's expression_id and note tell you which node to wire. Verify by re-reading the graph, not by success.
Returns: { material_path, expression_id (the OneMinus output), min_slope, max_slope }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pos_x | No | Editor graph X position (default -800) | |
| pos_y | No | Editor graph Y position (default 200) | |
| max_slope | No | Upper bound for SmoothStep (default 0.5) | |
| min_slope | No | Lower bound (radians or slope units, depending on convention) for SmoothStep (default 0.0) | |
| material_path | Yes | Asset path of the target UMaterial |