From 3285c552f408738f89969238896502cfeb8b98cc Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Sat, 21 Dec 2024 15:32:52 +0100 Subject: [PATCH] Verified motion vector "decoding" against the auto-generated camera MVs based on the clip-space delta matrix, and made a small fix --- .../Runtime/Effects/Upscaling/SGSR2/Shaders/sgsr2_birp.hlsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/SGSR2/Shaders/sgsr2_birp.hlsl b/Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/SGSR2/Shaders/sgsr2_birp.hlsl index c1e5d71..9c7711f 100644 --- a/Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/SGSR2/Shaders/sgsr2_birp.hlsl +++ b/Packages/com.unity.postprocessing@3.2.2/PostProcessing/Runtime/Effects/Upscaling/SGSR2/Shaders/sgsr2_birp.hlsl @@ -21,6 +21,6 @@ SamplerState s_LinearClamp : register(s1); inline float2 decodeVelocityFromTexture(float2 ev) { - // Nothing to do, motion vectors are not encoded - return ev; + // Nothing much to do, motion vectors are not encoded + return -ev; }