DX9 shader semantic quesiton (alphablending)

Started by
0 comments, last by MJP 14 years, 1 month ago
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
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.

This topic is closed to new replies.

Advertisement