diff --git a/README.md b/README.md index 9b9565a8..d77e6bae 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,13 @@ Shows the use of instancing for rendering the same mesh with differing uniforms Demonstrates the use of push constants for updating small blocks of shader data with high speed (and without having to use a uniform buffer). Displays several light sources with position updates through a push constant block in a separate command buffer. +### Occlusion queries +---- + + +Shows how to use occlusion queries to determine object visibility depending on the number of passed samples for a given object. Does an occlusion pass first, drawing all objects (and the occluder) with basic shaders, then reads the query results to conditionally color the objects during the final pass depending on their visibility. + + ### Offscreen rendering ---- diff --git a/screenshots/occlusion_queries.png b/screenshots/occlusion_queries.png new file mode 100644 index 00000000..d5bcc624 Binary files /dev/null and b/screenshots/occlusion_queries.png differ