# UE5.4 (and 5.4.1) shadows are broken in VR (VR Template, default settings)

**URL:** <https://forums.unrealengine.com/t/ue5-4-and-5-4-1-shadows-are-broken-in-vr-vr-template-default-settings/1841528>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-engine, bug-report\
**Created:** [May 5, 2024, 4:54pm UTC](https://forums.unrealengine.com/t/ue5-4-and-5-4-1-shadows-are-broken-in-vr-vr-template-default-settings/1841528 "2024-05-05T16:54:55Z")\
**Posts on this page:** 1\
**Showing post:** 32

<div class="post-metadata">

**Author:** ![Uno1982](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/uno1982/32/982436_2.png) [@Uno1982](https://forums.unrealengine.com/u/Uno1982)\
**Post date:** [July 11, 2024, 2:25am UTC](https://forums.unrealengine.com/t/ue5-4-and-5-4-1-shadows-are-broken-in-vr-vr-template-default-settings/1841528/32 "2024-07-11T02:25:39Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/a/75a13cfbc01296bc5ac47f45f2ae0078b1d703ac.jpeg "UE5.4.2 - Meta Quest Standalone Dynamic Shadow Fix!") ](https://www.youtube.com/watch?v=0GewdQy2ax8)

Below are the files you’ll need DefaultDeviceProfiles.ini in your config and AndroidScalability.ini in config/android inside of your Project/config folder

[DefaultDeviceProfiles.ini](https://forums.unrealengine.com/uploads/short-url/ts8LQq0BEGERZ1d0c35VxqG2Og5.ini) (1.1 KB)  
[AndroidScalability.ini](https://forums.unrealengine.com/uploads/short-url/mH0rkaoDx83wXwEuCe6TH0joycc.ini) (819 Bytes)

Shaders:  
[Shaders.zip](https://forums.unrealengine.com/uploads/short-url/uCoRP7QxtVhS0Gfy7v0Dlfybcq3.zip) (2.7 MB)

Shader unzipped contents should be placed here.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/8/b/e8b3e84827e32725ae994a7542da8a6a2c4c8f8d.png)

**IMPORTANT:**  
Mobile Multi should only be enabled for mobile builds  
Instanced Stereo shouldn’t be enabled for mobile builds and should only be enabled on desktop builds  
these flags appear to negatively impact quest2/3 standalone if both enabled.

**Update on Detecting the Quest 3 properly:** (thanks! @Starkium )  
To fix the problem, you need to add a MatchProfile in your BaseDeviceProfiles.ini located in (Your Engine Loc)\Engine\Config.

1. Open BaseDeviceProfiles.ini.
2. Find the existing MatchProfile for Meta\_Quest\_3.
3. After the existing entry, paste the following:

+MatchProfile=(Profile=“Meta\_Quest\_3”,Match=((SourceType=SRC\_DeviceMake,CompareType=CMP\_Equal,MatchString=“Oculus”), (SourceType=SRC\_GPUFamily,CompareType=CMP\_Equal,MatchString=“Adreno ™ 740”)))

---

_[View the full topic](https://forums.unrealengine.com/t/ue5-4-and-5-4-1-shadows-are-broken-in-vr-vr-template-default-settings/1841528)._
