SKCropNode masking edge anti-aliasing
问题 I created a circular mask and animate a sprite inside the mask by using sprite kit SKCropNode class. But the edge of the mask looks pixellated. Is there a way to use anti-aliasing to smooth the edges? 回答1: If you want to mask any SKNode/SKSpriteNode with an anti-aliasing effect - you can use SKEffectNode instead of SKCropNode. It works with animated nodes as well. Here is an example: // Set up your node SKNode *nodeToMask = [SKNode node]; // ... // Set up the mask node SKEffectNode *maskNode