Blending intensity


Does anyone know how to change blending intensity?

I’m using glBlendFunc(GL_SRC_ALPHA, GL_SRC_ALPHA)

For example I wanna have the blended texture a little more opaque.

I’ve tried glAlphaFunc but it doesn’t seem to work (or maybe I don’t know how to use it)

thanks for any help

Generally, I use glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); and to adjust the blending factor, you just adjust the alpha values.


I use glBlendFunc(GL_SRC_ALPHA, GL_SRC_ALPHA) for special blending effect.

I use GL_ONE_MINUS_SRC_ALPHA for texture mapped fonts.

Can I adjust alpha values in TGA file?

Yes, you can adjust the alpha in a TGA file if you have a graphics program that allows that. Both Photoshop and the Gimp will allow that. You create the alpha channel and then can draw on it as though it were a 256 color grayscale.

GL_SRC_ALPHA, GL_SRC_ALPHA will give the same amount of color from both src and dest, the only thing you are changing is the intensity of the resulting pixel.