10: Blending

So far, we have drawn opaque surfaces, that means you can't look through them. Many common objects that we encounter, such as glass, are see-through.

To make drawing such objects possible, there are two areas that we have to consider:

  1. How to combine transparent color with the current image
  2. How to actually draw the transparent objects

You can find the full rasterization code here: Rasterizer 10