<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MetalFX",
  "identifier" : "/documentation/MetalFX/MTLFXFrameInterpolatorBase/distortionTexture",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MetalFX"
    ],
    "preciseIdentifier" : "c:objc(pl)MTLFXFrameInterpolatorBase(py)distortionTexture"
  },
  "title" : "distortionTexture"
}
-->

# distortionTexture

A distortion field texture that the frame interpolator uses to correct barrel distortion.

```
var distortionTexture: (any MTLTexture)? { get set }
```

## Discussion

Assign a texture containing a distortion field to this property to enable barrel distortion
correction during frame interpolation. The distortion field describes how to remap pixels
to correct lens distortion artifacts common in VR or wide-angle camera applications.

You are responsible for providing a texture that matches the output dimensions of the frame interpolator.

---

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)