The filtering mode used when the size of a sprite drawn with the texture is not drawn at the texture’s native size.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The possible values for this property are listed in
SKTexture. The default value is
SKTexture where each pixel is drawn by using a linear filter of multiple texels in the texture. The other option is
SKTexture where each pixel is drawn using the nearest point in the texture.
The figure below shows the effect of different filtering modes. The rabbit texture (original on left) has been scaled up five times. Node 1 has been scaled using
SKTexture and node 2 has been scaled with