View Full Version : Blending intensity
yaro_dup1
03-21-2003, 05:57 AM
Hi,
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
yaro
Deiussum
03-21-2003, 09: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.
yaro_dup1
03-21-2003, 09:42 AM
Hi,
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?
Deiussum
03-21-2003, 11:43 AM
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.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.