Hello Guest

Author Topic: Grey Edge on Corner of BlendVertexColor Sprites  (Read 4076 times)

boehmz

  • Newbie
  • *
  • Posts: 7
    • View Profile
Grey Edge on Corner of BlendVertexColor Sprites
« on: December 03, 2012, 01:25:37 am »
When I use a tk2dSprite in the game with the shader "BlendVertexColor", there appears a one pixel width gray edge around the sprite.  This does not appear when the edge has alpha of 0, just for sprites with color up to the edges.




Also, thanks for the help earlier on renderqueue.  Simply switching to sharedmaterial instead of just material worked, felt like thanking you in this topic instead of bumping my other topic.

boehmz

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Grey Edge on Corner of BlendVertexColor Sprites
« Reply #1 on: December 03, 2012, 02:05:58 am »
Solved it through padding

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Grey Edge on Corner of BlendVertexColor Sprites
« Reply #2 on: December 03, 2012, 12:51:55 pm »
I'm guessing you changed pad type -> extend. That is the correct way to solve this.

The toolkit doesn't know what you want to do with your textures, and there is no sane way to guess this. For example, if you had an animated sprite, you'd want it to feather out rather than stop harshly.