mirror of https://github.com/bjornbytes/lovr.git
Originally we made the font texture f16 due to "clamping" of the distance field, and kept it as floats (but f32 since conversion isn't automatic with Vulkan) here. However, clamping isn't really an issue. You can increase the spread of the font to literally get a wider spread of the SDF for glows, etc. Switching to u8 uses 4x less texture memory, which is significant. |
||
---|---|---|
.. | ||
graphics.c | ||
graphics.h |