Alpha blending
Related terms: transparency, alpha channel, alpha test
Alpha is a fourth color channel that stores opacity. 1 is solid, 0 is invisible. Blending mixes a new pixel with the one already on screen using that value.
Transparent objects must be drawn back to front, after the solid ones, or they blend against the wrong thing. Alpha test (cutout) avoids sorting by making every pixel fully on or fully off, which suits leaves and fences.
out = src * alpha + dst * (1 - alpha)
- Further reading
- LearnOpenGL: blending