---
title: distortionTexture
framework: MetalFX
role: symbol
role_heading: Instance Property
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.1+]
path: metalfx/mtlfxframeinterpolatorbase/distortiontexture
---

# distortionTexture

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

## Declaration

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

## Discussion

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.
