Hello Guest

Author Topic: Gross edges  (Read 3281 times)

ItsMeAlan

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 22
    • View Profile
Gross edges
« 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!


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!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Gross edges
« Reply #1 on: March 30, 2013, 03:05:51 pm »
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.