# Android vulkan dynamic shadow issue \[VR\]

**URL:** <https://forums.unrealengine.com/t/android-vulkan-dynamic-shadow-issue-vr/138462>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [February 19, 2020, 6:41am UTC](https://forums.unrealengine.com/t/android-vulkan-dynamic-shadow-issue-vr/138462 "2020-02-19T06:41:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_ac4d8529](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_ac4d8529](https://forums.unrealengine.com/u/anonymous_user_ac4d8529)\
**Post date:** [February 19, 2020, 6:41am UTC](https://forums.unrealengine.com/t/android-vulkan-dynamic-shadow-issue-vr/138462/1 "2020-02-19T06:41:00Z")

</div>

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

Edit:  
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 ?

---

<div class="post-metadata">

**Author:** ![BernhardRieder](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BernhardRieder](https://forums.unrealengine.com/u/BernhardRieder)\
**Post date:** [October 31, 2020, 4:53am UTC](https://forums.unrealengine.com/t/android-vulkan-dynamic-shadow-issue-vr/138462/2 "2020-10-31T04:53:11Z")

</div>

Hi Daniell!

I was running into similar issues. It must have something to do with the Dynamic Shadow Distance for moveable Lights.  
If you jump over to my slack channel we can discuss and develop stuff.

My slack Link is here:

> **[Free UE4 Unreal Engine Projects for Download - FattyBull](https://FattyBull.com/resources/)**
>
> Free UE4 Unreal Engine Projects for Download, Free 3D Assets Unreal Engine 4, Free UE4 Projects, Free Unreal Projects, Free Game Assets UE4

cheers

---

<div class="post-metadata">

**Author:** ![jacmille11](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jacmille11](https://forums.unrealengine.com/u/jacmille11)\
**Post date:** [August 17, 2021, 3:17pm UTC](https://forums.unrealengine.com/t/android-vulkan-dynamic-shadow-issue-vr/138462/3 "2021-08-17T15:17:10Z")

</div>

The console command “r.Shadow.RadiusThreshold” helped me with what sounds like a similar issue. The default is 0.03, for me setting it to 0.02 fixed my disappearing shadow issue.

> **[Scalability Reference](https://docs.unrealengine.com/4.26/en-US/TestingAndOptimization/PerformanceAndProfiling/Scalability/ScalabilityReference/)**
>
> Scalability options, properties, and console variables.
