Hello Guest

Author Topic: Edge Bleeding in Sprites using solid shaders  (Read 3733 times)

ds85

  • Newbie
  • *
  • Posts: 2
    • View Profile
Edge Bleeding in Sprites using solid shaders
« on: November 18, 2015, 06:02:14 pm »
My Game is using a lot of PNG's(Triangular shaped with alpha transparency), i am creating sprite collections to pack them together.But after that i cannot used solid shader to reduce the overdraw on the devices.Using solid shader cause the edges to bleed in all the sprites. :o :o

Right Now the game is slowing due to overdraw of parallax background layers which are using blendvertex shader to avoid the edge bleeding of the sprites.Can you please let me know how i can use the solid tk2d shaders with sprite collections without causing the edges to bleed transparent pixels.Is there any setting that i am missing here ??

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Edge Bleeding in Sprites using solid shaders
« Reply #1 on: November 22, 2015, 11:19:31 am »
The solid shader is solid - it will draw all pixels irrespective of alpha. You can draw shapes using custom render geometry if you want to use a solid shader.