This package provides a collection of 2D signed distance functions (SDFs) that can be used in Unity Shader Graph. It includes various shapes, combinations, sampling, and modifiers to help create complex 2D shapes. The package is designed to be easy to use and understand, with a user-friendly interface and example scenes to get started. The SDFs can be used to create a wide range of 2D graphics, from simple shapes to complex scenes.
To get started, install the package into your Unity project, load the example SDF UI Scenes, and explore the Shader Graph file 'All Nodes' for a quick overview of the package contents.
The package includes:
- Sub Graphs: various 2D shapes such as arcs, circles, polygons, and more
- Combinations: operations to combine SDFs, such as addition, intersection, and subtraction
- Sampling: functions to sample SDFs, such as distance lines and hard sampling
- Modifiers: functions to modify SDFs, such as outlining and rounding
- Utils: utility functions, such as derivative aspect ratio
The package is constantly being updated and expanded, and the authors welcome contributions and suggestions from the community.
The package is built using Unity Shader Graph and is compatible with Unity 2018.4 or later. It uses a combination of C# and HLSL code to create the SDFs and their corresponding Shader Graph nodes.




