Runtime Virtual Texture used for snow trails is flickering in landscape material

Hi,

I’m trying to create a snow trail in my landscape material and did set it up with static mesh components that are spawned in tick, if the character has moved, and only rendered to the RVT. In the landscape material I plug the RVT into the displacement.

It works basically as expected, but it flickers when the character moves. Could be an issue with clearing the RVT? Does anyone have an idea how to fix it?

Thanks!

2023-11-02 16-17-04.mkv (12.2 MB)

Looks like it has to do with the overlapping planes that cause issues. The material uses BaseColor and Opacity. When I simply plug white in the BaseColor, the flickering disappears, but I do need to use BaseColor with different channels, unfortunately. Setting Translucency Sort Order didn’t change anything. Is there another way to fix sorting of objects rendered to a RVT?

Even if the individual planes don’t overlap each other vertically, the issue still is there. I’m guessing it really has to to with render order in the RVT, since it looks like the planes are pretty much drawn in random order (if I change the texture, I can clearly see that another plane is rendered on top of the others each frame). Does anyone know where the render order in RVTs is set?