# 5.4 preview -\> 5.4.0 Forward Rendering Dynamic Lighting Regression (VR Template)

**URL:** <https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281>\
**Category:** Rendering\
**Tags:** dynamic-lighting, Mobile, shadows-problem, cascade-shadow, Forward-Rendering, unreal-engine\
**Created:** [April 24, 2024, 2:52am UTC](https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281 "2024-04-24T02:52:49Z")\
**Posts on this page:** 11\
**Page:** 1

<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:** [April 24, 2024, 2:52am UTC](https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281/1 "2024-04-24T02:52:50Z")

</div>

Just updated from preview to UE5.4.0 release to open the VR template and realize dynamic shadow casting is now broken.

 ![CSM_Busted](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/5/675c91f67471d73746ce379d7f9e1690079bf477.jpeg)  
I’ve added a UDN post and reproduction steps to get some eyes on it.

Wanted to share with the community and also let you know that you can disable instanced stereo

```auto
vr.InstancedStereo=False

```

 ![CSM_Workaround](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/6/4/a642bb94f6dbbe5bce02020c688720c647a7ff23.jpeg)

in your engine.ini as a work around (Please note that this drastically impacts performance!!!)

Hopefully this saves anyone currently working in preview from updating only to majorly impact their workflow.

Here’s to hoping a hotfix comes soon 🙂

Happy Developing!

---

<div class="post-metadata">

**Author:** ![ArtiomG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ArtiomG](https://forums.unrealengine.com/u/ArtiomG)\
**Post date:** [April 27, 2024, 8:29pm UTC](https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281/2 "2024-04-27T20:29:44Z")

</div>

This! It’s nice to see that I’m not the only one facing this problem. I spent the whole evening fiddling around and couldn’t figure out what was going on after updating to 5.4.0. I hope this will be fixed soon, although it feels like the developers have given up on VR.

Btw could you share your GPU model? I have a 5700xt and was wondering if it might be an issue with the AMD GPU in general.

---

<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:** [April 30, 2024, 3:56am UTC](https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281/3 "2024-04-30T03:56:52Z")

</div>

It’s confirmed as a bug and can currently be fixed by modifying the shader code here

[https://github.com/EpicGames/UnrealEngine/commit/90ef97eee45bdb2665fafbd49d3784241ddba202](https://github.com/EpicGames/UnrealEngine/commit/90ef97eee45bdb2665fafbd49d3784241ddba202)

It requires recompiling shaders. UDN has mentioned a target fix for 5.5 and probably not a 5.4 hotfix due to it impacting shader cache ddc unfortunately

---

<div class="post-metadata">

**Author:** ![tomaaron872](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomaaron872](https://forums.unrealengine.com/u/tomaaron872)\
**Post date:** [April 30, 2024, 8:52am UTC](https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281/4 "2024-04-30T08:52:18Z")

</div>

hey @Uno1982 can confirm. Your fix works! Thanks buddy.

---

<div class="post-metadata">

**Author:** ![B.Aware](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@B.Aware](https://forums.unrealengine.com/u/B.Aware)\
**Post date:** [April 30, 2024, 9:14pm UTC](https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281/5 "2024-04-30T21:14:17Z")

</div>

Your link looks down? Getting a 404

---

<div class="post-metadata">

**Author:** ![tomaaron872](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@tomaaron872](https://forums.unrealengine.com/u/tomaaron872)\
**Post date:** [May 1, 2024, 7:04pm UTC](https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281/6 "2024-05-01T19:04:12Z")

</div>

@B.Aware No it’s not down. You need to be in the Epic Games org in GitHub. Here is how to get access to the source code of UE: [https://www.unrealengine.com/en-US/ue-on-github](https://www.unrealengine.com/en-US/ue-on-github)

---

<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:** [May 5, 2024, 3:35pm UTC](https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281/8 "2024-05-05T15:35:43Z")

</div>

Give this a shot for those of you that want to keep instanced stereo enabled.

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/a/75a13cfbc01296bc5ac47f45f2ae0078b1d703ac.jpeg "UE5.4 & UE5.4.1 Dynamic Shadow Bug Fix (Forward, Mobile, Deferred CSM)") ](https://www.youtube.com/watch?v=6H3fQThlon0)

---

<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:** [May 5, 2024, 3:37pm UTC](https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281/9 "2024-05-05T15:37:16Z")

</div>

Very welcome… also updated the post with a fix that doesn’t require disabling instanced stereo.

---

<div class="post-metadata">

**Author:** ![Rene97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rene97](https://forums.unrealengine.com/u/Rene97)\
**Post date:** [May 16, 2024, 1:37pm UTC](https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281/10 "2024-05-16T13:37:53Z")

</div>

I have another question since Unreal enigne 5 there is not a single 5.x version that support Dnyamic spotligh shadows for standalone? Any fixes for that. For Unreal enigne 4 everthing works as expected (dynamci spotlgith shadowsn standalone)

---

<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:** [June 4, 2024, 10:26pm UTC](https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281/11 "2024-06-04T22:26:49Z")

</div>

They have fixes noted for UE5.4.2 but I’m not sure it actually works. I’ll update once I have a chance to test. Been a minute since I used stationary spotlights with CSM

Here is the hotfix list.  
[5.4.2 Hotfix Released - General / Announcements - Epic Developer Community Forums (unrealengine.com)](https://forums.unrealengine.com/t/5-4-2-hotfix-released/1889074)

---

<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 17, 2024, 10:04am UTC](https://forums.unrealengine.com/t/5-4-preview-5-4-0-forward-rendering-dynamic-lighting-regression-vr-template/1818281/12 "2024-07-17T10:04:53Z")

</div>

> [@UE5.4 (and 5.4.1) shadows are broken in VR (VR Template, default settings)](https://forums.unrealengine.com/t/ue5-4-and-5-4-1-shadows-are-broken-in-vr-vr-template-default-settings/1841528/32):
>
> [[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. IMPORTANT: Mobile Multi should only be enabled for mobile builds Instanced Stereo shouldn’t be enabled for mobil…

UE5.4.3 hotfix released and yet again broke shadow maps (CSM) when used with instanced stereo. I’ve been updating the above link with information as it is a bug report. I’ve also included a working patch for those needing dynamic shadows for forward rendering with instanced stereo or mobile multiview in forward rendering.

Below is the behavior I’ve outlined for each setting in UE5.4.3 vanilla launcher.  
Forward Rendering + instanced stereo (shadows broken in left eye)  
Forward Rendering - instanced stereo (shadows working normally)  
Deferred Rendering (VSM) + instanced stereo (shadows working normally)  
Deferred Rendering (VSM) - instanced stereo (shadows working normally)  
Deferred Rendering (CSM) + instanced stereo (Shadows broken in left eye)  
Deferred Rendering (CSM) - instanced stereo (Shadows working normally)
