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
Sur cette page du site, vous pouvez voir la vidéo en ligne Multipass Rendering in Vulkan | Shadow Mapping | Visual Artifacts durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur PhyMac Illustrator 30 avril 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 1,202 fois et il a aimé 16 téléspectateurs. Bon visionnage!