diff --git a/README.md b/README.md index 57fb43ed..7d2c0ad4 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,14 @@ The demo uses two different pipelines (and shader sets) to display the cubemap a Texture arrays allow storing of multiple images in different layers without any interpolation between the layers. This example demonstrates the use of a 2D texture array with instanced rendering. Each instance samples from a different layer of the texture array. +### Distance field fonts +---- + + +Instead of just sampling a bitmap font texture, a texture with per-character signed distance fields is used to generate high quality glyphs in the fragment shader. This results in a much higher quality than common bitmap fonts, even if heavily zoomed. + +Distance field font textures can be generated with tools like [Hiero](https://github.com/libgdx/libgdx/wiki/Hiero). + ### Pipelines ---- diff --git a/screenshots/font_distancefield.png b/screenshots/font_distancefield.png new file mode 100644 index 00000000..6b9d2cb9 Binary files /dev/null and b/screenshots/font_distancefield.png differ