Jump to content
  • Advertisement
Sign in to follow this  
chiyuwang

blending with formula?

This topic is 3611 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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!