简体   繁体   中英

LibGDX thin black border on sprites

I am having the issue as seen below while using a textureAtlas with libgdx. I haven't found anyone else with the issue so I decided to ask here.

Here is an image of the textures in the game screen: 在此处输入图片说明

And to prove it's not a texture related issue, here is the spritesheet with the same background color as the game screen has applied:

在此处输入图片说明

Any suggestions? sorry for the sloppy write-up I am very preoccupied.

Turns out the answer has to do with alpha channels and the way they were being processed. I removed transparent pixels from the edges and it works as intended now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM