Implementing shadow maps
As we’ve seen in previous chapters, we can render complex scenes with diverse materials, including physically based rendering (PBR) materials. While these techniques can create visually appealing images, the realism of our scenes was severely lacking. Adding shadows can significantly enhance the depth and authenticity of a scene, making it feel more grounded and believable. Shadow mapping, in particular, is a foundational technique for achieving realistic lighting and shading effects. In this recipe, we will go through the basics of projective shadow mapping techniques.
Getting ready
The demo application for this recipe, located in Chapter10/02_ShadowMapping
, implements all the essential steps for setting up a projective shadow mapping rendering pipeline. It is recommended to briefly review the code before reading this recipe.
Be sure to review the recipe Implementing offscreen rendering in Vulkan to refresh your understanding of rendering...