I'm trying to figure out if there is a way to control blending process during rendering.
For example: - there is a background texture, sprite1 and sprite 2 (all partly overlay). - sprite2 is white, background and sprite1 don't have white pixels - I want sprites to blend with the background, but not with each other.
Can I somehow program opengl to do the following for each pixel? - check if 3 colors are being blended and one of them is white, then blend just the other 2 and disregard white - if 2 colors are blended and one of them is white, then blend regularly
Is this something that can be done with shaders?