Jump to content

Shader question


JeViCo

Recommended Posts

Posted (edited)

Hello everyone!

I have a simple shader:

texture Tex0;

technique paint {
    pass P0 {
        Texture[0] = Tex0;
    }
}

For example i have several images on 1 texture but background is black (even with transparent render target). How can i fix it? I want to replace black background with another texture

Edited by Juuve
Posted

Do you mean you want to have alpha blending enabled? That requires slightly more than this simple shader, namely, AlphaBlendEnable, SrcBlend and DestBlend and I believe that might require a pixel shader.

  • Thanks 1
Posted
17 minutes ago, MrTasty said:

Do you mean you want to have alpha blending enabled? That requires slightly more than this simple shader, namely, AlphaBlendEnable, SrcBlend and DestBlend and I believe that might require a pixel shader.

Thank you so much) You helped me a lot

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...