Jump to content
  • 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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!