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
In questa pagina del sito puoi guardare il video online Multipass Rendering in Vulkan | Shadow Mapping | Visual Artifacts della durata di ore minuti seconda in buona qualità , che l'utente ha caricato PhyMac Illustrator 30 aprile 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 1,202 volte e gli è piaciuto 16 spettatori. Buona visione!