Skip to content

Commit

Permalink
[Shaders] Reverted motion vectors computation
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosK92 committed Nov 3, 2023
1 parent a2f4984 commit a7755a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/shaders/g_buffer.hlsl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a7755a2

Please sign in to comment.