Sign in to follow this  
visla

Alpha Blending when Rendering to texture! HELP!

Recommended Posts

visla    151
I have some problems doing alpha blending while rendering to some texture. Exactly I have render target, and i am using AlphaBlendEnable=true, SrcBlend=one; DstBlend=one; but all seem to work when dont have render target. But when I set render target then it is all rendering as if I had AlphaBlending=false; Problem: I need to render particle systems and all scene to one final render target and later do some post processing...

Share this post


Link to post
Share on other sites
visla    151
Well. I am rendering to FP surface... I need to render to fp surface. is there anyway i can do this. I want to render everything on scene to fp surface in order to make HDR, and also want to make my particles in that. How modern engines solve this if it is not possible to render to fp surface.

Share this post


Link to post
Share on other sites
neneboricua19    634
There are two ways this is normally done. The first is to render your particles at a later stage when you're using a non-floating point target.

The other option is to perform the alpha blending yourself in your pixel shader. To do this, you would need to use two render targets and alternate between them.

neneboricua

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this