3 ms·
This is kind of expensive actually. Its usually done with a precalculated texture sheet of glyphs which trades memory for shader perf. See: Signed Distance Fi
by jayd16 8y ago
This is kind of expensive actually. Its usually done with a precalculated texture sheet of glyphs which trades memory for shader perf. See: Signed Distance Field
- sguwwochqbib 8y agook but a precomputed texture isn't scalable
- jayd16 8y agoWhen its an SDF texture it is scalable because the distance function produces continuous data. The aliasing is greatly reduces because data is easily calculable from neighboring pixel samples. Edit: Here's Valve's Siggraph paper on the technique https://steamcdn-a.akamaihd.net/apps/valve/2007/SIGGRAPH2007_AlphaTestedMagnification.pdf https://steamcdn-a.akamaihd.net/apps/valve/2007/SIGGRAPH2007...