• Advertisement
Sign in to follow this  

blending with formula?

This topic is 3320 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I put some code for blending mode in HLSL: BlendOp=Add; SrcBlend=InvDestAlpha; DestBlend=DestAlpha; Is it possible to put kind of formula for setting them, for example: BlendOp=Add; SrcBlend=InvDestAlpha + SrcAlpha; DestBlend=DestAlpha + InvSrcAlpha; If it is not possible, is there any other way to do it? Thank you in advance. [Edited by - chiyuwang on January 19, 2009 5:52:40 AM]

Share this post


Link to post
Share on other sites
Advertisement
You can only set the SrcBlend and DestBlend blending states to a single constant, but what effect exactly are you trying to achieve?

Share this post


Link to post
Share on other sites
My effect is normal blending and mask effect on that.

first I try to render alpha on to the render target as mask,

then render geometry with blend and mask together.

sorry for my crapy english

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement