in your account for example.
ps_out ps( ps_in In )
{
PS_OUT Out = ( PS_OUT ) 0;
float4 color;
color = tex2D( sBase, In.Base.xy );
Out.Color = color;
return Out;
}
You can use alpha blending, and then use the Swizzle operator on the color element and multiply the alpha / opacity of the color.
eg. color.a = color.a * opacity / 255.0f
source
share