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

# motionVectorScaleX

The horizontal scale factor the frame interpolator applies to the input motion texture.

## Declaration

```swift
var motionVectorScaleX: Float { get set }
```

## Discussion

Discussion The frame interpolator converts the horizontal component of each value in motionTexture into fragment (pixel) coordinates by multiplying it by this property’s value. If you set this property’s value to 1.0, this interpolator expects that each pixel’s motion vector points to the location where that pixel is in the prevColorTexture. For example, in Metal’s standard device coordinates where (0,0) represents the upper-left corner of the framebuffer, the motion vectors for an object that moves down and to the right in the colorTexture by 10 pixels would be (-10,-10).
