In my foliage I have a “wind sway” shader which uses “rotateaboutaxis” node to sway the foliage with the wind using world position offset. This works pretty well but after I add this to my shader, I get weird popping glitches of dark spots on the foliage. When I disconnect the wind sway nodes, the glitches are gone.
I’m on ue5, but i had the same problem on ue4 as well. any idea on how to solve this would be greatly appreciated!
here’s a video showing the glitch:
this is what my mesh looks like, no duplicate vertices:
a freeze frame of the glitch (don’t mind the highlighted area) :
here’s the guilty nodes: