Sign in to follow this  

[help][shader] if using compile ps_3_0 texture gets transparent

Recommended Posts

So, I have a shader:

float4 PixelShader3Function(float2 UVCoords : TEXCOORD0) : COLOR0
    return float4(0, 0, 0, 1);

technique Normal
    pass P0
        PixelShader = compile ps_3_0 PixelShader3Function();

Which should make the texture black, but instead it makes it transparent.
But, if I use compile  ps_2_0 instead it works just fine, and turns my texture into black.
Anyone any idea?

Share this post

Link to post

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  

  • Recently Browsing   0 members

    No registered users viewing this page.