LibGDX: Filtering a scaled TextureRegion

前端 未结 2 643
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-18 00:17

I have several objects with different textures for different states, so I am using a TextureAtlas made with TexturePacker, and resizing the TextureRegion<

2条回答
  •  余生分开走
    2021-01-18 01:04

    You can open your .atlas file and change the filter value to Linear, Linear. Or you can use region.getTexture() to get access to the Texture to which the region belongs, then call setFilter(...) on that.

提交回复
热议问题