Sweenus987 - Distance Field Outline

Create post-process outlines using Distance Fields or basic edge detection. Distance Fields are a great method for creating post-process based outlines whilst maintaining accurate silhouettes for the objects. And because you have the distance to the edge - a gradient from 0 to 1 - you are not limited to just simple one coloured outlines. You can create all sorts of effects, even dynamic ones that change over time or font related effects like glows, drop-shadows and bevels.

With a custom anti-aliasing pass you can make your outlines smooth even if you're not using temporal based antialiasing or want to avoid any artifacts that can come with temporal based antialiasing methods.

The use of this plugin goes beyond just post-process effects since the distance field result renders to a RenderTarget2D texture asset, you can access them anywhere where you can use those assets. This also means you can use the plugin to generate on-demand distance fields for gameplay use or some other kind of utility like asset creation.

The plugin also offers various ways to optimise Distance Field generation to help make it viable even on older hardware.

Documentation:

Welcome | Distance Field Outline

Old Documentation

You can see the results of some performance profiling I've done on my GTX 1070 laptop here.

Contact me via email - available via my FAB profile - if you have any queries or concerns

Development Roadmap - Roadmap | Distance Field Outline