• Advertisement

Alpha Blend Front and Back Colors Setup for SM 2.0

Recommended Posts

I can't seem to find the specification for SM 2.0 anymore. Could anyone tell me what is the constant name for Alpha Blending Front and Back Colors?

technique FireTechnique
   pass P0
    vertexShader = compile vs_2_0 FireVertexShader();
           pixelShader  = compile ps_2_0 FirePixelShader();
    AlphaBlendEnable = true;
    SrcBlend     = InvSrcAlpha;
    DestBlend    = SrcAlpha;


Original SM 4.0 technique:

	technique10 FireTechnique
    pass pass0
        SetBlendState(AlphaBlendingOn, float4(0.0f, 0.0f, 0.0f, 0.0f), 0xFFFFFFFF);
        SetVertexShader(CompileShader(vs_4_0, FireVertexShader()));
        SetPixelShader(CompileShader(ps_4_0, FirePixelShader()));


Edited by lucky6969b

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

  • Advertisement