largely based on work by @rextimmy: add premultiplied alpha

This commit is contained in:
AzaezelX 2019-11-22 10:02:01 -06:00
parent c1e99364b7
commit bd21a207ef
6 changed files with 37 additions and 11 deletions

View file

@ -82,6 +82,7 @@ ImplementEnumType( MaterialBlendOp,
"@ingroup GFX\n\n")
{ Material::None, "None", "Disable blending for this material." },
{ Material::Mul, "Mul", "Multiplicative blending." },
{ Material::PreMul, "PreMul", "Premultiplied alpha." },
{ Material::Add, "Add", "Adds the color of the material to the frame buffer with full alpha for each pixel." },
{ Material::AddAlpha, "AddAlpha", "The color is modulated by the alpha channel before being added to the frame buffer." },
{ Material::Sub, "Sub", "Subtractive Blending. Reverses the color model, causing dark colors to have a stronger visual effect." },