Jump to content
  • Advertisement
Sign in to follow this  
Naruto-kun

Alpha blending

This topic is 1844 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi guys

 

I have a project where i need to blend multiple images into one and after numerous attempts with GDI+ and Direct2D(which were either too slow or used pre multiplied alpha) i finally decided to do my own alpha blending system with D3D.

 

I found this topic: http://www.gamedev.net/topic/34688-alpha-blend-formula/

 

Its pretty much just what i need however I need to know which of the pixels would be "on top" so to speak in the layer. So which would it be? src or dest?

 

Thanks

JB

Share this post


Link to post
Share on other sites
Advertisement

src is the output of your pixel shader, and dest is what's already in the surface you're rendering to.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!