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
На этой странице сайта вы можете посмотреть видео онлайн Multipass Rendering in Vulkan | Shadow Mapping | Visual Artifacts длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь PhyMac Illustrator 30 Апрель 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 1,202 раз и оно понравилось 16 зрителям. Приятного просмотра!