3 ms·
There's super interesting super-fast very high quality font rendering technique on GPU using extremely simple fragment shader and low-res prerendered texture th
by scotty79 6y ago
There's super interesting super-fast very high quality font rendering technique on GPU using extremely simple fragment shader and low-res prerendered texture that contains 3-channel signed distance field.
https://youtu.be/6l_oSHWFbb0 https://youtu.be/6l_oSHWFbb0
That distance fields encoded in the texture are really freaky to capture sharp corners as median of three of them when texture gets interpolated:
https://github.com/copperspice/cs_paint/blob/master/demo/resources/DejaVuSansMono.png https://github.com/copperspice/cs_paint/blob/master/demo/res...
- scotty79 6y agoApparently it's called MSDF fonts and you can read about how to use it practice here https://css-tricks.com/techniques-for-rendering-text-with-webgl/ https://css-tricks.com/techniques-for-rendering-text-with-we...