Sign in to follow this  
groovable

OpenGL Blending substract function

Recommended Posts

Quote:
Original post by groovable
¿is there any way of substract colors by using the opengl blend functions?
You can change the blend equation (as opposed to the blend function) with glBlendEquation. The modes that are of interest to you would be GL_FUNC_SUBTRACT or GL_FUNC_REVERSE_SUBTRACT. You can read more about this function (and the glBlendEquationSeparate function, which can specify a separate equation for color and alpha components) in the OpenGL spec (pdf). These functions were promoted to core OpenGL in version 1.4, so you will have to access them as extensions in Windows.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this