# Stop Directional Light from Shining Through Meshes

**URL:** <https://forums.unrealengine.com/t/stop-directional-light-from-shining-through-meshes/2241198>\
**Category:** World Creation\
**Tags:** unreal-engine, question\
**Created:** [December 25, 2024, 3:47am UTC](https://forums.unrealengine.com/t/stop-directional-light-from-shining-through-meshes/2241198 "2024-12-25T03:47:18Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Krotus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/krotus/32/88718_2.png) [@Krotus](https://forums.unrealengine.com/u/Krotus)\
**Post date:** [December 25, 2024, 3:47am UTC](https://forums.unrealengine.com/t/stop-directional-light-from-shining-through-meshes/2241198/1 "2024-12-25T03:47:18Z")

</div>

Hello and Happy Holidays!

Using Unreal Engine 5.5. I’m having a really hard time trying to figure out why a Directional Light is shining through objects/meshes. What setting am I missing to prevent this? Here is an example of 6 cubes creating a closed space:

Outside

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/2/0/02079ee01c9f677e3ff8857d655cb01797cf04e7.jpeg)

Inside

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/7/d1768ce13a312ac97e8165bcff843a8d0b8b172a.jpeg)

I’ve spent hours searching for a setting and have tried several that were suggested and I just cannot get a 100% dark interior that I can add point lights to.

---

<div class="post-metadata">

**Author:** ![SupportiveEntity](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SupportiveEntity](https://forums.unrealengine.com/u/SupportiveEntity)\
**Post date:** [December 25, 2024, 5:52am UTC](https://forums.unrealengine.com/t/stop-directional-light-from-shining-through-meshes/2241198/2 "2024-12-25T05:52:16Z")

</div>

Hey there @Krotus! Welcome back to the community! Generally there’s a couple measures to help with light bleeding that can mitigate it without extra geometry, but in many cases with large rooms you may want to work out the logistics of disabling the light when underground and only reenabling it when it should be visible again. Using that technique and extra blocking volumes on problematic areas can also help.

> [@How can I fix this UE5 interior light bleeding issue?](https://forums.unrealengine.com/t/how-can-i-fix-this-ue5-interior-light-bleeding-issue/560653):
>
> I’m having an issue with light bleed in interiors of buildings that seemingly disappears as I get closer to the area and reappears when I move further away. [Edit] This issue existed prior to upgrading the project to UE5 so I don’t believe this is a UE5/Lumen issue. Project Details: Lumen is enabled Moveable directional light No light source within the building [Edit] All roofs/walls/etc. are separate, solid meshes. [Edit] Walls/roofs/etc. are 20 cm thick What We’ve Tried: Adjusting shadow…

---

<div class="post-metadata">

**Author:** ![Feyion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Feyion](https://forums.unrealengine.com/u/Feyion)\
**Post date:** [December 25, 2024, 7:46am UTC](https://forums.unrealengine.com/t/stop-directional-light-from-shining-through-meshes/2241198/3 "2024-12-25T07:46:45Z")

</div>

Newbie here. But encountered a similar problem. Discovered it was because auto exposure was on with no post effects to counter it. Is that possibly it?

---

<div class="post-metadata">

**Author:** ![Krotus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/krotus/32/88718_2.png) [@Krotus](https://forums.unrealengine.com/u/Krotus)\
**Post date:** [December 25, 2024, 7:29pm UTC](https://forums.unrealengine.com/t/stop-directional-light-from-shining-through-meshes/2241198/4 "2024-12-25T19:29:15Z")

</div>

Thanks, but no, that doesn’t appear to be the issue.

---

<div class="post-metadata">

**Author:** ![Krotus](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/krotus/32/88718_2.png) [@Krotus](https://forums.unrealengine.com/u/Krotus)\
**Post date:** [December 25, 2024, 7:31pm UTC](https://forums.unrealengine.com/t/stop-directional-light-from-shining-through-meshes/2241198/5 "2024-12-25T19:31:19Z")

</div>

Thanks. I had kind of started thinking that turning off the directional light when underground would be the easiest solution, I just wanted to check here first for any setting(s) I may be missing.

---

<div class="post-metadata">

**Author:** ![ZacD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ZacD](https://forums.unrealengine.com/u/ZacD)\
**Post date:** [December 26, 2024, 4:08pm UTC](https://forums.unrealengine.com/t/stop-directional-light-from-shining-through-meshes/2241198/6 "2024-12-26T16:08:29Z")

</div>

The skylight will affect everything unless you’re using something more complete like Lumen or baked lighting. There’s also DFAO which will darken larger areas occluding the skylight, but it’s a more rough approximation.

So your options are:

Use Lumen  
Use baked lighting  
Turn off the skylight if in occluded areas (or change it to a different HDRI that better represents the scene)  
Use DFAO and deal with some of the effect  
Use something else for lighting

---

<div class="post-metadata">

**Author:** ![MostHost\_LA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mosthost_la/32/907035_2.png) [@MostHost\_LA](https://forums.unrealengine.com/u/MostHost_LA)\
**Post date:** [December 26, 2024, 9:54pm UTC](https://forums.unrealengine.com/t/stop-directional-light-from-shining-through-meshes/2241198/7 "2024-12-26T21:54:09Z")

</div>

The engine doesnt have a proper Runtime GI.

Normally, you put “stuff” in the doorways that didables or reduces the skylight settings when yku enter.

Also, a properly made Manifold model will prevent bleeding _much_ better than adjacent or even overlapping objects.

Thats generally why in Modular Kits you make Corners that can be used directly as corners.

In ue4.x you can sort of levarage distance fields to somewaht adjust the bleed by way of forcing more shadow - which somewhat also helps get the room darker when you disable or control auto-exposure.

Using Baked Light mentioned above would fail btw.

As I said, you can’t stack random objects and expect the lightmap to work right after bake.

You need precise models with correct light UVs and honestly, to enclose a room for a light build- not only would the model need to be merged (which is just best practice), but you would probably also have to give it a double shell made of 1m thick engine blocks in order to prevent any light from baking in the exterior of the walls;  
Thanks to the total mess that the engine makes of shaders, any light hitting the mesh anywhere will results in light bleeding thorugh to the other side of a double sided manifold mesh…

Additionally, the shadowing artifact you see at the junctures is more a result of TAA than the engine’s light of DFAO/light calcs.

Youd get almost no artefacts in forwardshading mode. Which is something to at least consider…

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 25, 2025, 9:54pm UTC](https://forums.unrealengine.com/t/stop-directional-light-from-shining-through-meshes/2241198/8 "2025-01-25T21:54:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
