简体   繁体   English

LibGDX 精灵上的黑色细边框

[英]LibGDX thin black border on sprites

I am having the issue as seen below while using a textureAtlas with libgdx.我在使用带有 libgdx 的 textureAtlas 时遇到了如下问题。 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.事实证明,答案与 alpha 通道及其处理方式有关。 I removed transparent pixels from the edges and it works as intended now.我从边缘移除了透明像素,现在它可以按预期工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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