webgl-sdf-generator
webgl-sdf-generator copied to clipboard
A signed distance field (SDF) image generator for 2D paths such as font glyphs, accelerated using WebGL.
Hi, I am using your tool to generate SDF icons for MapLibre JS and it works great for some icons but for the following just renders as a black square:...
Zero distance is currently always encoded as 0.5, but it may be useful to be able to shift that value.
See https://www.khronos.org/webgl/wiki/HandlingContextLost Should add some unit tests around that.