2D Toolkit Forum

2D Toolkit => Support => Topic started by: blameMike on September 24, 2013, 05:55:22 pm

Title: Best Shader To use for a sprite
Post by: blameMike on September 24, 2013, 05:55:22 pm
I get a white outline on my sprite when it's against a dark background. I'm currently using the tk2d/Blend2TextVertexColor shader. Is there a better shader to use for this, or perhaps this is another issue?

http://d.pr/i/Bb3w

Thanks.
Title: Re: Best Shader To use for a sprite
Post by: unikronsoftware on September 25, 2013, 10:39:46 am
You can try using the Premul vertex color variant (don't forget to turn on premultiplied alpha in the sprite collection editor and commit). That should get rid of the problem.

Or - if you don't need filtering, use point filtering for the texture - it should get rid of this as well.
Title: Re: Best Shader To use for a sprite
Post by: blameMike on September 26, 2013, 01:28:40 am
Awesome! Thank you.