Jump to content
Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 23 September 2005 - 10:00 PM
Posted 24 September 2005 - 06:04 AM
Posted 24 September 2005 - 06:31 AM
glEnable(GL_BLEND);This will make the blend equation
Co = 1*Cs + 1*Cdwhere Co is the output color, Cs is the source color, and Cd is the destination color.
Posted 24 September 2005 - 07:00 AM
Quote:Yep, that is still additive, but the blend equation then becomes
Original post by ZadrraS
And can i just use glBlendFunc(GL_SRC_ALPHA, GL_ONE); instead of glBlendFunc(GL_ONE, GL_ONE);? I seem to be getting the same results.
Co = As*Cs + 1*Cdso that the source color is first scaled by source alpha, then added to destination color. So if your source alpha equals 1.0, it will be equivalent to glBlendFunc(GL_ONE, GL_ONE).
Posted 24 September 2005 - 05:45 PM
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.