What is the equivalent to an HLSL step function in the material editor

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.

1 Like