Fabrizio Bergamo

Real-Time FX & Tech Art

2D SDF – Basic Shapes and Visualization

Material Function Library UE5

This is the First Part of a 2D Sign Distance Field Material Function Library I created for Unreal Engine.

SDFs can be used in various different ways, in this case, they are very powerful and useful when creating materials. Here you can see some basic shapes, different ways to visualize the SDF, and basic transformation functions.
Check out my first blog post guide about this topic, where I explain everything you can see here as well as some tips for making your own Material Function Library.


Circle


Rectangle


Triangle


Segment


Round Corners


Annular Shapes


Wave Patterns


Offset Function


Rotate Function


Scale Function