Back to Browse

GameMaker - Blend Modes, Surface-Alpha & Premultiplying Alpha

7.0K views
Jul 26, 2018
20:11

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

Download

1 formats

Video Formats

360pmp431.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

GameMaker - Blend Modes, Surface-Alpha & Premultiplying Alpha | NatokHD