motionVectorScaleX
The horizontal scale factor the frame interpolator applies to the input motion texture.
Declaration
var motionVectorScaleX: Float { get set }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).