TAA produces artifacts for rendered entities

Hey, I was wondering if TAA is supposed to be compatible with entities. Specifically with URP?

When I try to enable TAA, I’m seeing artifacts around the edges of any rendered entity. The exact same mesh and material works fine on a game object.

I made a new empty project in unity 2022.2.5f1 using the URP core template. Added two cubes both using the URP Lit shader. The left one is a game object and the right is an entity inside a subscene.

With TAA off, the cubes are rendered the same:

With TAA on, the right cube (the entity) has artifacts along its edges:

I did a little debugging and I noticed that the Motion Vectors pass is producing very different results for the entity compared to the game object.

This motion vector texture is then used by the TAA pass.

Just to be clear, this scene is static. Neither the game object, entity, nor camera are being moved.

I’m happy to submit a bug with the repro project if that is helpful. Thanks!

1 Like

This definitely looks like a bug, the motion vectors should be zero if the entity is not moving.

1 Like

I believe this bug was still occurring in the latest version of entities graphics and urp. However, I recently enabled the RenderGraph execution path in my project and TAA motion vector calculations appear to be working correctly with entities now.