Jump to content
  • Advertisement
Sign in to follow this  
grunt123

DX9 shader semantic quesiton (alphablending)

This topic is 3122 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 use the following shader semantics to set alphablending operation ... technique xxx { pass p0 { SrcBlend = SRCALPHA; DestBlend = INVSRCALPHA; ... } } Is there something similar for setting blend operation for alpha channel? I found out that using those semantics reset both color and alpha. I want to set blend op for alpha separately

Share this post


Link to post
Share on other sites
Advertisement
Those are not semantics. Semantics are "attached" to variables to give them special meaning, they are are not values you assign to them. An example of a semantic is when you declare "float4 position : POSITION", where the "POSITION" is the semantic.

What you're using there are called Effect States.

Also if you want to post code here, you can use the "code" or "source" tags. See the FAQ.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!