<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKTexture/filteringMode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKTexture(py)filteringMode"
  },
  "title" : "filteringMode"
}
-->

# filteringMode

The filtering mode used when the size of a sprite drawn with the texture is not drawn at the texture’s native size.

```
var filteringMode: SKTextureFilteringMode { get set }
```

## Discussion

The possible values for this property are listed in [`SKTextureFilteringMode`](/documentation/SpriteKit/SKTextureFilteringMode). The default value is [`SKTextureFilteringMode.linear`](/documentation/SpriteKit/SKTextureFilteringMode/linear) where each pixel is drawn by using a linear filter of multiple texels in the texture. The other option is [`SKTextureFilteringMode.nearest`](/documentation/SpriteKit/SKTextureFilteringMode/nearest) 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 [`SKTextureFilteringMode.nearest`](/documentation/SpriteKit/SKTextureFilteringMode/nearest) and node 2 has been scaled with [`SKTextureFilteringMode.linear`](/documentation/SpriteKit/SKTextureFilteringMode/linear).

![The effect of filtering modes on a scaled texture](images/com.apple.spritekit/media-2668828@2x.png)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)