An open API service indexing awesome lists of open source software.

https://github.com/sydneyzh/variance_shadow_mapping_vk

Variance shadow mapping for omni lights with Vulkan
https://github.com/sydneyzh/variance_shadow_mapping_vk

cubemap shadow-mapping vulkan

Last synced: 4 days ago
JSON representation

Variance shadow mapping for omni lights with Vulkan

Awesome Lists containing this project

README

          

# Variance shadow mapping for omni lights with Vulkan

![vsm_vk](https://i.imgur.com/LDP3aoh.png)

Render routine:
- Render pass shadow map
- one draw call, write to one color attachment with 6 layers
- Render pass Gaussian filter (x direction)
- one draw call, write to six color attachments with single layer
- Render pass Gaussian filter (y direction)
- same as above
- Render pass on screen

A blog post discussing the details:

> [Rendering dynamic cube maps for omni light shadows with Vulkan API](http://blue2rgb.sydneyzh.com/rendering-dynamic-cube-maps-for-omni-light-shadows-with-vulkan-api.html)

Controls:
- orbit: left/right/up/down arrow keys
- pan: A/D/R/F
- forward and backward: W/S
- freeze/unfreeze light: F1
- pause animation: P