firstly, I use dx9.
when using alpha blend, I set the src alpha factor to D3DSRCALPHA,
dest alpha factor to D3DINVSRCALPHA,
the blend operator to D3DBLEND_ADD.
I use a bright pass to set the alpha value of the texture where is black , to 0.
I first draw the scene, then blend the texture to the scene .
but the black part of the texture are still black , it can't become transparent.
[attachment=32183:360??20160608213853386.jpg]