This repository contains reference shader implementations for the Slug font rendering algorithm. The code itself contains many comments providing details about the inputs and the calculations performed.
For information about how the core algorithm works, see the 2017 paper in the Journal of Computer Graphics Techniques:
https://jcgt.org/published/0006/02/02/
Updated information about changes that have occurred over the years can be found in the following blog post:
https://terathon.com/blog/decade-slug.html
The code in this repository may be freely used by anyone for any purpose. The patent has been dedicated to the public domain. If you do use this code in software that gets distributed in any way, then you are required to give credit.