Jump to content

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


Pirulax

Recommended Posts

  • Discord Moderators

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?

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...