Sign in to follow this  
vidhvat

color blending on render targets

Recommended Posts

I am having trouble with directx. I want to blend colors on render targets. So that if i render a blue pixel rgb(0,0,1) onto a green pixel rgb(0,1,0) the resultant pixel should be rgb(0,1,1); Is there any way to do this in shaders.

Share this post


Link to post
Share on other sites
I want to know if there is anyway to add colors like alpha.
When I draw something, lets say a sprite with a 0.5 alpha value on top of another one, the transperancy decreases and the image starts becoming opaque.
Is there anyway to do the same with colors.
Thanks

Share this post


Link to post
Share on other sites
See Namethatnobodyelsetook's response. Plus enabling AlphaBlending by setting the corresponding renderstate. Beware that alpha blending isn't supported on every rendertarget format and every graphics card. All but the most recent graphics boards are unable to alphablend when rendering to a floating point rendertarget.

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