I know that glBlendEquation only sets the equation for each rgba element, but wouldn't it be nice if there was an equation that allowed mixing elements, maybe by using the full source and destination color in each element. Maybe something like this:
This is probably not the best way to do it, but I hope you get the idea. I have no idea whether this is possible in todays hardware or not, but it seems to me that something like this would allow for much greater flexibility.Code :CS = source color (RGBA) CD = destination color (RGBA) SF = source factor DF = destination factor final blended RGBA values are give by (CS*SF + CD*DF, CS*SF + CD*DF, CS*SF + CD*DF, CS*SF + CD*DF)
What I really need is dot3 blending without having to do 12 passes or whatever. So actually my main request is just the ability to have the same blending operations as the combiner extension.