Shadow Distance Culling for Masked Materials

I have these gross shadows on distant objects that pop in and out. I am using Lumen and virtual shadow masks. I have tried various console variables such as r.Shadow.DistanceScale, r.Shadow.RadiusThreshold, r.Shadow.Virtual.Cache with no effect. Is there any way to fix this issue?

Hi @notfakeFingle1!

This is caused by your directional light’s Dynamic Shadow Distance. Masked objects only cast a dynamic masked shadow.

However, I would advise against messing with this value. Dynamic shadows are expensive, and this value has been set specifically to balance visuals with performance. If you really feel like you must increase this number, keep an eye on your shadow costs in your stat GPU and stat SceneRendering, as this is where your dynamic shadow costs will show up most.