what is the equivalent to an HLSL step function in the material editor.
The closest to that funtion would be “If” node
You can use the hlsl step function in the material editor. Make a custom node, make two inputs named x and y. Put:
return step(x,y);
in the Code field.
Beware though, that the UE4 documentation recommends not to use custom expressions: Custom Material Expressions in Unreal Engine | Unreal Engine 5.2 Documentation
I’d recommend to use either the if node (which at least on HLSL does not mean branching), or to subtract → sign → saturate instead.