Wrong WPO motion vectors due to periodic world space

We’ve noticed smearing on grass due to wrong motion vectors. This appears to be caused by lack of previous frame support in the periodic world space node.

This is how we fixed it:

In MaterialTemplate.ush

[Image Removed]

In HLSLMaterialTranslator.cpp

[Image Removed]

Even though we’ve only tested UE 5.6, there doesn’t seem to be a fix for this in 5.7 either based on Github.

Just wanted to report the issue.

[Attachment Removed]

Steps to Reproduce
Use Periodic World Space coordinate and hook it up to World Position Offset

[Image Removed]

Note smearing due to TSR/TAA. We’ve only noticed it in packaged builds with high frame rate but theoretically you should also see it in-editor, I think.

[Attachment Removed]

Hi there!

Thanks for reporting this and providing a fix, I’ve created the following issue which should be visible soon for tracking https://issues.unrealengine.com/issue/UE\-379620

[Attachment Removed]