From a7755a27d91e4ba576d36be012925c17897952d9 Mon Sep 17 00:00:00 2001 From: Panos Karabelas Date: Fri, 3 Nov 2023 09:43:40 +0000 Subject: [PATCH] [Shaders] Reverted motion vectors computation --- data/shaders/g_buffer.hlsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/shaders/g_buffer.hlsl b/data/shaders/g_buffer.hlsl index e68f3cdf6..240dd6dc5 100644 --- a/data/shaders/g_buffer.hlsl +++ b/data/shaders/g_buffer.hlsl @@ -119,7 +119,7 @@ PixelOutputType mainPS(PixelInputType input) position_ndc_previous -= buffer_frame.taa_jitter_previous; // compute the velocity - velocity = position_ndc_current - position_ndc_previous; + velocity = ndc_to_uv(position_ndc_current) - ndc_to_uv(position_ndc_previous); } // uv