Twitter: https://twitter.com/GamingReverends
In this video I'll explain the basics of blend modes, why surfaces can suddenly loose alpha and how to fix that issue in different ways including premultiplying alpha.
There's a copy-paste mistake in this video:
"FYI, your results are wrong at 4:30ish, the bottom area should actually show:
R: 0.00 * 0 + 0.27 * 1 = 0.27 (not 1.00, like you wrote)
G: 0.00 * 0 + 0.55 * 1 = 0.55 (not 0.69)
B: 0.00 * 0 + 0.80 * 1 = 0.80 (not 0.36)"
- AnixiasPlays
_________________________
Links:
Mark Alexanders tech blog on blend modes:
https://www.yoyogames.com/blog/56/explaining-blend-modes-part-1
https://www.yoyogames.com/blog/57/explaining-blend-modes-part-2
(if the links break: google "GMS explaining blend modes")
blend mode schematic image:
https://www.dropbox.com/s/5bsdo8eivb6x7o3/schematic_blend_modes.png?dl=0
Project file for this video:
https://www.dropbox.com/s/2akzswozidf1pdx/surface_blendmode_premultiply_alpha.yyz?dl=0
Shader tutorial playlist:
https://www.youtube.com/playlist?list=PL0kTSdIvQNCNE-BDKOlYu628AalMmXy_P