Screenshot and info on shadow mapping demo

This commit is contained in:
saschawillems 2016-02-28 22:17:57 +01:00
parent b96e370881
commit 0363b09645
2 changed files with 7 additions and 0 deletions

View file

@ -147,6 +147,13 @@ Demonstrates the use of multiple render targets to fill a G-Buffer for deferred
Deferred shading collects all values (color, normal, position) into different render targets in one pass thanks to multiple render targets, and then does all shading and lighting calculations based on these in scree space, thus allowing for much more light sources than traditional forward renderers. Deferred shading collects all values (color, normal, position) into different render targets in one pass thanks to multiple render targets, and then does all shading and lighting calculations based on these in scree space, thus allowing for much more light sources than traditional forward renderers.
<br><br> <br><br>
## [Shadowmapping](shadowmapping/)
<img src="./screenshots/shadowmapping.png" height="96px" align="right">
Shows how to implement directional dynamic shadows with a single shadow map in two passes. Pass one renders the scene from the light's point of view and copies the depth buffer to a depth texture.
The second pass renders the scene from the camera's point of view using the depth texture to compare the depth value of the texels with the one stored in the depth texture to determine whether a texel is shadowed or not and also applies a PCF filter for smooth shadow borders.
To avoid shadow artifacts the dynamic depth bias state ([vkCmdSetDepthBias](https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkCmdSetDepthBias.html)) is used to apply a constant and slope dept bias factor.
## [Omnidirectional shadow mapping](shadowmappingomni/) ## [Omnidirectional shadow mapping](shadowmappingomni/)
<img src="./screenshots/shadow_omnidirectional.png" height="96px" align="right"> <img src="./screenshots/shadow_omnidirectional.png" height="96px" align="right">

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB