The glBlendFunc function specifies pixel arithmetic for OpenGL rendering.
I'm writing a application where a user is allowed to toggle between different shaders, and combinations of them. Thus i …