Skip to content

Commit 5a26133

Browse files
committed
Fixed incorrect backbuffer sample
1 parent 1bbe66e commit 5a26133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/include/FidelityFX/gpu/frameinterpolation/ffx_frameinterpolation_game_motion_vector_field.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void computeGameFieldMvs(FfxInt32x2 iPxPos)
4848
const FfxUInt32 uHighPriorityFactorPrimary = getPriorityFactorFromViewSpaceDepth(fViewSpaceDepth);
4949

5050
FfxFloat32x3 prevBackbufferCol = SamplePreviousBackbuffer(fUvInInterpolationRect).xyz;
51-
FfxFloat32x3 curBackbufferCol = SamplePreviousBackbuffer(fUvInInterpolationRect + fGameMotionVector * fUvLetterBoxScale).xyz;
51+
FfxFloat32x3 curBackbufferCol = SampleCurrentBackbuffer(fUvInInterpolationRect + fGameMotionVector * fUvLetterBoxScale).xyz;
5252
FfxFloat32 prevLuma = 0.001f + RawRGBToLuminance(prevBackbufferCol);
5353
FfxFloat32 currLuma = 0.001f + RawRGBToLuminance(curBackbufferCol);
5454

0 commit comments

Comments
 (0)