问题描述
摘自Apples文档:只有两个纹理的尺寸均为2的幂时,您才可以请求mipmap."
From apples documentation:"You can only request mipmaps if both of the texture’s dimensions are a power of two."
但是,目前还不清楚SKTextureAtlas的SKTextures是否也支持此功能(因为它们本质上有些不同).
However, it's unclear whether the SKTextures from SKTextureAtlas's also support this feature (since they're essentially a bit different in nature).
我问这个问题,是因为实际上很难看清结果是否有误.
I ask the question because it's actually hard to see if anything is getting mipmapped from the results.
推荐答案
首先从SKTextureAtlas提供的SKTexture不支持mipmapping.其次,有时mipmapping甚至无法与常规SKTexture一起使用,它在很大程度上取决于如何嵌套在节点结构中.
First off a SKTexture from a SKTextureAtlas does not support mipmapping. Secondly sometimes mipmapping doesn't even work with a regular SKTexture it depends a lot on how it is nested inside the node structure.
这篇关于SKTextureAtlas的SKTexture是否支持mipmap功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!