Material missing smoothstep Node

im currently in the process of making several distance field based text materials and smoothstep is a big factor there. the default material only uses a fake but cheap lerp between -90 and 90 to create sharp edges but i want to do it right based on valve’s papers and im missing a smoothstep node for that. am i missing something or is there no default node for it? its even a build in function for both glsl and hlsl

You can use smoothstep with a custom node.

yes but the already defined one is most likely optimized to use less instructions and there is no point of reinventing the wheel

Reinventing the wheel? I’m talking about using the already defined one, you put hlsl code in a custom node. Make a custom node, select the appropriate output type, set the inputs to min, max and x and add code:

return smoothstep(min,max,x);

no extra instructions involved.

missunderstood you there. thought about a material function with the smoothstep math in it. a custom node should do the job yes