Hacker News new | ask | show | jobs
by cepacked 162 days ago
I use SDFs on my render engine to render text. It allows me to debug values inside shaders. (I can print value of an uniform, texture value etc.)

(It's a combination of line segments for each letter and digit)

1 comments

Are you aware of Valve's paper[0] for glyph rendering via SDFs? You can get amazing results from a low res glyph atlas.

[0] https://steamcdn-a.akamaihd.net/apps/valve/2007/SIGGRAPH2007...

From what I understand, that paper was extremely influential and the technique has been widely adopted.
UE4/5 implement fonts this way.