<!--
{
  "availability" : [
    "iOS: 8.0.0 - 26.0.0",
    "iPadOS: 8.0.0 - 26.0.0",
    "macCatalyst: 13.1.0 - 26.0.0",
    "macOS: 10.8.0 - 26.0.0",
    "tvOS: 9.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0",
    "watchOS: 3.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SceneKit",
  "identifier" : "/documentation/SceneKit/SCNMaterialProperty/maxAnisotropy",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SceneKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SCNMaterialProperty(py)maxAnisotropy"
  },
  "title" : "maxAnisotropy"
}
-->

# maxAnisotropy

The amount of anisotropic texture filtering to be used when rendering the material property’s image contents.

```
var maxAnisotropy: CGFloat { get set }
```

## Discussion

Anisotropic filtering is a process that increases the quality of texture rendering when a textured surface appears at an extreme angle relative to the camera. This process works by sampling from multiple mipmap levels of a texture for each rendered pixel—the term anisotropy refers to the number of samples per pixel. A higher anisotropy improves rendering quality, but at a cost to rendering performance.

For example, the image on the left in the figure below uses no anisotropic filtering, resulting in rendering artifacts as the checkerboard pattern recedes into the distance. The other images use higher [`maxAnisotropy`](/documentation/SceneKit/SCNMaterialProperty/maxAnisotropy) values, reducing rendering artifacts. Anisotropic filtering requires mipmaps, so this property only takes effect if the value of the [`mipFilter`](/documentation/SceneKit/SCNMaterialProperty/mipFilter) property is not [`SCNFilterMode.none`](/documentation/SceneKit/SCNFilterMode/none).

![](images/com.apple.scenekit/media-2929776@2x.png)

SceneKit automatically increases or decreases anisotropy for each rendered pixel as needed to maximize rendering quality, up to the limit specified by this property. The maximum anisotropy level used when rendering is dependent on the graphics hardware in use. Set this property’s value to the `MAXFLOAT` constant (the default) to use the highest anisotropy level supported by the GPU. A [`maxAnisotropy`](/documentation/SceneKit/SCNMaterialProperty/maxAnisotropy) value of `1.0` or lower disables anisotropic filtering.

---

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)