Flickering shadows due to world position offset

Hi there,

In my scene I only use dynamic lighting, static lighting is completely disabled.

I have a couple of trees with leaves that are being deformed via world-position-offset to simulate wind through the material. Now I also have grass in my scene, right under those trees, and that grass is also being deformed to simulate wind in the material.

The grass itself does not cast shadows but it is receiving the tree shadow. Now the problem is that the tree shadow that is cast on the grass flickers a lot, which I can only get rid of by disabling the tree’s world-position-offset all together.

Now is there a way to disable the world-position-offset in the material, but only for the shadow pass?

Regards
QB