blurrypiano / littleVulkanEngine

Code repo for video tutorial series teaching Vulkan and computer graphics
MIT License
829 stars 147 forks source link

Alpha Blending and Transparency - Tutorial 27 #31

Closed blurrypiano closed 2 years ago

blurrypiano commented 2 years ago

By setting a fragment's alpha to a value in between 0 and 1 we can render semi-transparent objects. Unfortunately things aren’t that simple. When working with semi-transparent objects, the order in which we render them actually matters!

In this tutorial we add a limited blending capability to our point light system, allowing them to be rendered with a nicer appearance.