• Advertisement
Sign in to follow this  

DX9 shader semantic quesiton (alphablending)

This topic is 2909 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