Sign in to follow this  
grunt123

DX9 shader semantic quesiton (alphablending)

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
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

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