2D Toolkit Forum
2D Toolkit => Support => Topic started by: ItsMeAlan on March 30, 2013, 04:24:23 am
-
I have a sprite that is just a square of a solid color. When I enlarge the sprite a little, I start getting these gross black edges.
Observe!
(http://i.imgur.com/VFnMDh5.png)
This shows a solid light blue sprite resting on top of another solid light blue sprite. Is there some way I can get rid of those black borders?
Thanks!
-
Easy solution, turn on point filtering.
The likely reason you're getting black is that the texture is being enlarged, filtering is on, and the pixels outside the visible area are black.
You can also turn on premultiplied alpha, but remember to change the shader on the material too.