Skip to content

Text with a distance-field shader

Signed distance fields (SDF) scale text without jagged edges when mip-mapping and filtering are set up carefully. This ties into the broader text pipeline in Lesson 15 and Lesson 16.

Compare against MSDF and bitmap-font approaches on the same string for your target DPI.

Draw text

Released under the MIT License.