I have an issue with mobile development for bigger scenes (city scale) and dynamic shadows.
I’m using cascaded shadow maps and also far shadow cascade.
Also I’m using the built-in SunSky for time change.
My directional light is dynamic, the ambient light is static (only one dynamic source supported).
Shadows tend to disappear upon your view direction, see following video for the short effect:
The effect does not change when changing CSM distances, num of cascades (both, far and near), use contact shadows and so on.
For me it looks like the engine disables receiving shadows on objects which are not “full” in the field of view.
Anyone got a clue?
P.s. this effect also exists on Android ES3.1, not only vulkan
It seems to be, that when distances for dynamic shadows (and far shadows) are not too high (i.e. 10k and 100k (normal and far shadow)), it seems to work.
Is it possible that the fov/frustum get’s streched by this distance and therefore the angle is smaller and therefore the objects get culled from the shadow map ?