|
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
|
When tinting with 0,0,0,0, the entire bitmap should be clear, as it adds nothing to the target. What version of allegro are you using? Do you have a simple example code that demonstrates this? My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|