Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Premultiplied Alpha Blending

This thread is locked; no one can reply to it. rss feed Print
Premultiplied Alpha Blending
simon77c
Member #20,398
June 2021

Hi, when I'm using premultiplied alpha blending (al_set_blender(ALLEGRO_ADD, ALLEGRO_ONE, ALLEGRO_INVERSE_ALPHA);), and tinting my bitmap with al_map_rgba_f(0.0f, 0.0f, 0.0f, 0.0f) in al_draw_tinted_bitmap, it is drawing the entire source opaquely, with all transparent pixels turned into white. Is this normal?

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Go to: