View Full Version : Blending intensity
03-21-2003, 06:57 AM
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
03-21-2003, 10:04 AM
Generally, I use glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); and to adjust the blending factor, you just adjust the alpha values.
03-21-2003, 10:42 AM
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?
03-21-2003, 12:43 PM
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.
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.