Hey everyone!
Algorithm
-----------------------------------
First Render Pass:
Render the scene with the projection and view matrix of the light; only render to the depth buffer.
Second Render Pass:
Render the scene with the projection and view matrix of the camera; using the depth buffer (shadow map) from the previous render pass to determine whether a pixel is in the shadow or not.
Source code on Github
----------------------------------------
I've created a single header called PlayVk.h which can be used as a utility for setting up Vulkan in just 100 lines of code.
https://github.com/ravi688/VulkanRend...
I will fix the visual artifact soon!
Thanks for watching
Nesta página do site você pode assistir ao vídeo on-line Multipass Rendering in Vulkan | Shadow Mapping | Visual Artifacts duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário PhyMac Illustrator 30 Abril 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,202 vezes e gostou 16 espectadores. Boa visualização!