Skip to content

Demonstrates order independent transparency on Vulkan using depth peeling.

Notifications You must be signed in to change notification settings

openforeveryone/VulkanDepthPeel

Repository files navigation

Vulkan depth peel demo

Demonstrates order independent transparency on Vulkan using depth peeling. This code accompanies the blog post [Depth Peeling Order Independent Transparency in Vulkan] (https://matthewwellings.com/blog/depth-peeling-order-independent-transparency-in-vulkan/).

This demo will run on Linux (XCB) and Android. It makes use of subpasses, input attachments and reusable command buffers.

Keys (on Linux):

  • Space to toggle split-screen (left is traditional order dependent right is depth peeled)
  • Up and down to change number of layers used.
  • Left and right to change number of objects rendered.
  • W and S to display only one of the peeled layers and to select the currently displayed layer.

Screenshot

All blocks are the same size and rendered in arbitrary order in separate draw calls.

About

Demonstrates order independent transparency on Vulkan using depth peeling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published