Alpha Blending with Alpha in texture
Michael <[email protected]> Thu, 16 Nov 2006 08:48:24 -0800
| Newsgroups | gmane.games.devel.opengl |
|---|---|
| Organization | Fat City Network Services, San Diego, California |
| Message-ID | <[email protected]> |
Hello all I'm looking through the archives, but had a question that maybe someone in the mean time could reply before I find the answer: I need to fade out a texture that already contains alpha. Setting the material diffuse alpha should be enough? Ideally, I'd like, where Ksa = Constant Src Alpha, and Kda = Constant Dst Alpha, is glBlend( float Ksa, float Kda). But I'd settle for "half" that, multiplying the source by a constant value. Out = (Ksa*RsSr+RdDr, Ksa*GsSg+GdDg, Ksa*BsSb+BdDb, Ksa*AsSa+AdDa) Any demo programs already setup that demonstrate this? TIA, Michael ----- FAQ and OpenGL Resources at: http://www.geocities.com/SiliconValley/Hills/9956/OpenGL -- Author: Michael INET: [email protected] Fat City Hosting, San Diego, California -- http://www.fatcity.com --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: [email protected] (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB OPENGL-GAMEDEV-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).