SDF Font Example¶
- SDF_Font_Example.fuse
... can be downloaded and copied manually into your fuses folder if needed - SDF_Font_Example.comp
... needs the repository to be checked out as described in the README - Uses shader_fontgen/shadertoy.png as its input texture
With Otavio Good's shader_fontgen one can create a SDF (signed distance function) based font texture. For a good introduction into SDF Fonts based on the technique proposed by Chris Green of Valve at SIGGRAPH 2007 see SDFont, a Signed Distance Font Generator and Runtime Utility by Shoichiro Yamanishi. See About SDF fonts in the Unity manual to quickly get the idea.
Examples of how to render the SDF font into text:
- SDF font 0 by IFHEo
- SDF Font Texture Adventures ... uses the font texture and adds some effects
Shadertoys using the SDF font texture:
- GPU and OS detector v2 by archee
- iResolution, iMouse, iDate, etc by FabriceNeyret2
- [SH17C] Physically Based Shading by knarkowicz
Other Shadertoys that display text:
- Pangram ... just "paints" the letters - no texture needed
- 96-bit 8x12 Font ... a pixel font - no texture needed