diff --git a/README.md b/README.md index add19c0a..e79fd1d5 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,13 @@ Texture arrays allow storing of multiple images in different layers without any This example demonstrates the use of a 2D texture array with instanced rendering. Each instance samples from a different layer of the texture array.

+## [Text overlay (Multi pass)](textoverlay/) + + +Renders a 2D text overlay on top of an existing 3D scene. The example implements a text overlay class with separate descriptor sets, layouts, pipelines and render pass to detach it from the rendering of the scene. The font is generated by loading glyph data from a [stb font file](http://nothings.org/stb/font/) into a buffer that's copied to the font image. + +After rendering the scene, the second render pass of the text overlay class loads the contents of the first render pass and displays text on top of it using blending. + ## [Distance field fonts](distancefieldfonts/) diff --git a/screenshots/textoverlay.png b/screenshots/textoverlay.png new file mode 100644 index 00000000..0976b938 Binary files /dev/null and b/screenshots/textoverlay.png differ