That’s something to do with the add on, I think it’s already doing a lot of stuff and you’re fighting it. I’ll have to come back about why it doesn’t work in a default level…
i made a copy of the ue4 sky box (BP_Sky_Sphere) and added your version of the code to it, however it seems to work at fast levels but slower levels like here 0.005 cause the shadow to once again start jumping.
although something new i tried the exact same code on a different project and it wasn’t jumping back and forth, but it was moving far more smoothly
after playing around with settings more and searching google, it turned out to be the cascaded shadow maps settings from the directional light, turning the distance of the shadows down yielded far smoother shadow transitions
Ah, excellent - so glad you found that