JeViCo Posted August 3, 2018 Share Posted August 3, 2018 (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 August 3, 2018 by Juuve Link to comment
Addlibs Posted August 3, 2018 Share Posted August 3, 2018 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. 1 Link to comment
JeViCo Posted August 3, 2018 Author Share Posted August 3, 2018 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 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now