A month or so after making the Smooth Stepping Curve Function in Substance Designer, I wondered if the same could be done in Unreal Engine.
Turns out you can, but each function does add 22 instructions to the material.
I don’t think I will use it much in the future and I don’t really advise it for production projects, especially because in Substance Designer I found I could get better results pairing it with a blurring node (more about it here), which is not really an option in Unreal’s Material Graph. For this reason, I prefer just exporting the texture directly out from Designer.
Here you can find the function applied to 3 different noises
This is the texture I used if you are interested:
Red Channel – Clouds 2
Blue Channel – Perlin
Green Channel – Crystal 2
(Substance Designer noises)
The function can be visualized and debugged by applying it to a left to right, 0-1 gradient, simply using the Red channel of the “TexCoord” node.
Then the remapped gradient can be put into a visualizer, you can find the one I made here, in there I also show the basics needed for making your own one.
Something to mention, I don’t think Unreal’s Material Graph has a node for the Exponential function, so unfortunately I had to use custom nodes for it:
exp(Value);
This is the function’s graph:
You can find the snippet here on Unreal’s Forum.
Thanks for reading!!
Leave a Reply