我试图缩放SKSpriteNode对象而不平滑/消除锯齿(我使用像素艺术,因此它看起来更像像素化).
我需要设置这样做的属性吗?这是我用来渲染精灵的代码:
SKTextureAtlas *atlas = [SKTextureAtlas atlasNamed:@"objects"];
SKTexture *f1 = [atlas textureNamed:@"hero_1.png"];
SKSpriteNode *hero = [SKSpriteNode spriteNodeWithTexture:f1];
[self addChild: hero];
hero.scale = 6.0f;
Run Code Online (Sandbox Code Playgroud)
图像缩放正确但模糊/平滑.这是hero_1.png
.