2D Toolkit Forum

2D Toolkit => Support => Topic started by: ds85 on November 18, 2015, 06:02:14 pm

Title: Edge Bleeding in Sprites using solid shaders
Post by: ds85 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 ??
Title: Re: Edge Bleeding in Sprites using solid shaders
Post by: unikronsoftware 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.