Greetings all,
as a fairly new user of OpenGL I’ve got a question.
Reverse subtractive blending can be done by:
glBlendFunc(GL_ONE,GL_ONE);
glBlendEquation(GL_FUNC_REVERSE_SUBTRACT);
which would be something like
new = dest-src
But what I would like is the src inverted first:
new = dest-(255-src)
or
new = dest-255+src
I also tried using glLogicOp() with GL_COLOR_LOGIC_OP enabled, but that seemed to completely override the blending.
Perhaps the best way is to first do a reverse subtractive blend on a white background and reverse subtractive blend that result, but I’m unsure how to that. What do you people think?
Sandokan