|
Multiply blending mode anyone? |
sadelbrid
Member #15,200
June 2013
|
I am trying to implement a lighting system in my applications. I understand a really simple way to do it: create a light map and multiply it to the destination. al_set_blender() is used to set blending functions. Does anyone know a combination of parameters that would mimic multiplying the rgb values? Or is there a more simple way to do it... -Thanks! P.s. here is the function definition and examples: https://www.allegro.cc/manual/5/al_set_blender |
ph03nix
Member #15,028
April 2013
|
I don't think you can with allegro 5, but you can with 5.1 http://alleg.sourceforge.net/a5docs/refman/graphics.html#al_set_blender |
J-Gamer
Member #12,491
January 2011
|
It looks like you want the last one specified in the manual: " There are plenty of wonderful ideas in The Bible, but God isn't one of them." - Derezo |
|