Original Post
I want to write to the AlphaChannel(Deep,...) and use Opcity(8 Bit SrcAlpha + InvScrAlpha) in a single pass.
Has anyone done ist ??
I have done this before, but in a bad hack.
I am rendering the scene into a texture. Setting the texture i am rendering in stage 0 and the base texture in Stage 1. Then im am "lrp" tex0.rgb and tex1.rgb by tex1.a. Then setting alpha to the value i want.
It works but is not nice to read a texture witch is the aktuell rendertarget. And don´t try to EMBM the input tex0, maybe it works(ATI) but most times you see the titels, or artifacts.
Has anyone a better idea for this ???