r/GraphicsProgramming • u/TermerAlexander • Nov 22 '24
Finally got shadow maps working with Vulkan.
11
u/augustusgrizzly Nov 22 '24
nice! now try to make it percentage closer soft shadows, will look a lot nicer!
2
u/Proud-Syrup-5393 Nov 23 '24
If your next goal is cascaded shadow mapping, I advise you to get them faster and then move on with SDSM(sample distribution shadow mapping) for better cascade scheme split(tighting your camera frustum to min/max depth based on z prepass) which is based on scene depth, also the whole shadow setup pipeline will be on the GPU to minimize stalls on readbacks. And finally polishing this thing with PCSS will give you pretty decent shadows.
1
u/ad_irato Dec 01 '24 edited Dec 01 '24
Could you recommend some resources?
1
u/Proud-Syrup-5393 Jan 18 '25
Sorry for being late, I used lots(really been going through google), but the favorite one is: https://therealmjp.github.io/posts/shadow-maps/
1
5
u/snigherfardimungus Nov 22 '24
It looks like you're generating your shadow map on the world space, is that right?