Material Function Library UE5
The last piece of my 2D SDF library.
All of the advanced shapes you can see in this post are coming from Indigo’s Article (+ShaderToy), please check it out:
2D distance functions
I’ve only recreated them in Unreal’s Material Graph using nodes, it was a lot of fun and a great way to learn more about hlsl and glsl
If you want to know more about Sign Distance Fields please check out my blog posts about it, here’s the first introductory one:
2D SDF – Basic Shapes and Visualization – Material Function Library
























The only one that had to be in a custom hlsl node since it contains a for loop





