# How to fix, Light passes through objects in ue5

**URL:** <https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Rendering, Lighting, question\
**Created:** [January 27, 2024, 2:41pm UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573 "2024-01-27T14:41:32Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nenroin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nenroin](https://forums.unrealengine.com/u/Nenroin)\
**Post date:** [January 27, 2024, 2:41pm UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/1 "2024-01-27T14:41:32Z")

</div>

The light passes through the door frame and the door, I use shadow maps instead of virtual shadow maps as it gives an increase of +20 fps, but there are some bugs with the light.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/5/815be7f50dcba2e8cd032ab84bc72c9bff996c73.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/a/b/dabb22b9c54deb4c1b95dfc59077eca89d353d64.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/8/b38c300c620fc98e6b6410c618a316cc9a99ecaf.jpeg)

I’ve tried it:

- Two sided material.
- This dynamic light (shadow map resolution) will not help.

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [January 28, 2024, 4:55am UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/2 "2024-01-28T04:55:26Z")

</div>

Greetings @Nenroin

Welcome to the Unreal Engine Community Forum! With this issue do you have ‘cast volumetric shadow’ enabled on the spotlight/light itself?

---

<div class="post-metadata">

**Author:** ![Nenroin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nenroin](https://forums.unrealengine.com/u/Nenroin)\
**Post date:** [January 28, 2024, 4:04pm UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/3 "2024-01-28T16:04:29Z")

</div>

@FrostyJas thank you for responding!  
Cast volumetric shadow - disabled

I turned on Distance Field Shadows, but it only gave this result:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/e/66e28f47ec4b8031885e666c6da8909010ab9ae8.jpeg)

---

<div class="post-metadata">

**Author:** ![Nenroin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nenroin](https://forums.unrealengine.com/u/Nenroin)\
**Post date:** [January 28, 2024, 4:13pm UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/4 "2024-01-28T16:13:15Z")

</div>

Unfortunately, my only solution so far is to use shadow maps…

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [January 29, 2024, 9:23am UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/5 "2024-01-29T09:23:52Z")

</div>

Hi @Nenroin

Try turning on ‘cast volumetric shadow’ and test again.

---

<div class="post-metadata">

**Author:** ![Nenroin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nenroin](https://forums.unrealengine.com/u/Nenroin)\
**Post date:** [January 29, 2024, 10:49am UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/6 "2024-01-29T10:49:18Z")

</div>

I’ve already tried it all, nothing changes at all, and how should it help if it only works with volumetric fog… ☹

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/4/0/9407410c98aab42183ca4211355fb382278e51bd.jpeg)

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [January 31, 2024, 2:49am UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/7 "2024-01-31T02:49:11Z")

</div>

Take a peek at this discussion. I pulled this up earlier when looking into your issue and I think this may help shine some light (No pun intended) on the situation. Let me know if this helps! [Door leaks light in a dark room](https://forums.unrealengine.com/t/door-leaks-light-in-a-dark-room/121206)

---

<div class="post-metadata">

**Author:** ![Nenroin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nenroin](https://forums.unrealengine.com/u/Nenroin)\
**Post date:** [January 31, 2024, 7:40pm UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/8 "2024-01-31T19:40:23Z")

</div>

It didn’t help, and he still has an unresolved problem, just like me(  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/a/ada1dc219f14909dd580fb29a7f59dddb2d9412a.png)

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [February 1, 2024, 7:39am UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/9 "2024-02-01T07:39:29Z")

</div>

I see. I assume you’re using dynamic lighting. Does this occur if you change to static lighting?

---

<div class="post-metadata">

**Author:** ![Nenroin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nenroin](https://forums.unrealengine.com/u/Nenroin)\
**Post date:** [February 1, 2024, 9:59pm UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/10 "2024-02-01T21:59:18Z")

</div>

Oh, and I forgot to write that I use dynamic lighting. If use static lighting and bake, then naturally the problem goes away, but I need it to work with dynamic lighting.

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [February 3, 2024, 7:43am UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/11 "2024-02-03T07:43:45Z")

</div>

Oh, I see. In that case I wondered is this only happening with doors or is it happening in the corner of walls and such too? If it’s just the door, make sure that you’re not using single-sided meshes for it. I assume that you’re using dynamic directional light. Is the dynamic shadow distance movable light set to default?

---

<div class="post-metadata">

**Author:** ![Nenroin](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Nenroin](https://forums.unrealengine.com/u/Nenroin)\
**Post date:** [February 3, 2024, 9:31am UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/12 "2024-02-03T09:31:49Z")

</div>

Light passes through objects everywhere, and especially if you move further away, things get even worse. “dynamic shadow distance” - where is this parameter?

---

<div class="post-metadata">

**Author:** ![FrostyJas](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/frostyjas/32/1194640_2.png) [@FrostyJas](https://forums.unrealengine.com/u/FrostyJas)\
**Post date:** [February 5, 2024, 3:52am UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/13 "2024-02-05T03:52:45Z")

</div>

Here’s an thread with more info on DSD and where to find it. [How to decrease dynamic shadow distance?](https://forums.unrealengine.com/t/how-to-decrease-dynamic-shadow-distance/762465)

---

<div class="post-metadata">

**Author:** ![Abdullah\_Tariq45](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Abdullah\_Tariq45](https://forums.unrealengine.com/u/Abdullah_Tariq45)\
**Post date:** [August 18, 2025, 1:14pm UTC](https://forums.unrealengine.com/t/how-to-fix-light-passes-through-objects-in-ue5/1646573/14 "2025-08-18T13:14:31Z")

</div>

check light deep cast shadow
