Expand description

Bitmap-based “closest opposite-color pixel” bruteforce search.

This algorithm is a commonly implemented one, but a naive and inefficient one.

It was most notably popularized by Valve in their 2007 SIGGRAPH entry, on using 2D texture-based SDFs to render text (or any vector shapes) in 3D environments, “Improved Alpha-Tested Magnification for Vector Textures and Special Effects”.

Functions