Alpha blending

Started by
2 comments, last by JB3DG 10 years, 10 months ago

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

Advertisement

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

Probably clearer: src is the color you want to blend, dest is what was in that pixel before.

Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.

Thanks a bunch guys

This topic is closed to new replies.

Advertisement