Alpha Masking

Implementing Alpha Masking was quite straight forward. The only problem was keeping track of the correct distance. For that we have a correction variable that keeps track of that. Below you can see a render of a sphere engulfed by a sphere with an alpha mask (and two mirrors (and a light)).

Code:

  • src/core/instance.cpp
Spoiler: Implementation of this feature in our final render
    The plants on our walls use alpha masking.