# Shadows Culling

**URL:** <https://forums.unrealengine.com/t/shadows-culling/1674824>\
**Category:** Rendering\
**Tags:** culling, Shadows, unreal-engine, Rendering, Lighting, question\
**Created:** [February 8, 2024, 7:10pm UTC](https://forums.unrealengine.com/t/shadows-culling/1674824 "2024-02-08T19:10:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhilippeMinuit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeMinuit](https://forums.unrealengine.com/u/PhilippeMinuit)\
**Post date:** [February 8, 2024, 7:10pm UTC](https://forums.unrealengine.com/t/shadows-culling/1674824/1 "2024-02-08T19:10:41Z")

</div>

Hi! Have seen this issue come up since switching from unreal 5.1 to 5.2 (it is also in 5.3 which I am currently using)

Shadows get culled depending on the object’s screensize. I change the min size for it to not cull but it still happens! No commands or PostProcess settings seem to be fixing this.

Help!!!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/f/6dfe2af2cdd40b5b0159de339e0748ff8cb52975.jpeg)

---

<div class="post-metadata">

**Author:** ![Leomerya12](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leomerya12/32/926321_2.png) [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Post date:** [February 8, 2024, 7:44pm UTC](https://forums.unrealengine.com/t/shadows-culling/1674824/2 "2024-02-08T19:44:54Z")

</div>

Hello, Phillipe:

Take a look at this:

> [@Shadows disappear with increased camera distance](https://forums.unrealengine.com/t/shadows-disappear-with-increased-camera-distance/4690/13):
>
> Some gathered notes that help me solved this problem (thanks everyone!): When using Stationary or Movable Lights on a movable mesh (not static) the shadow visibility of that movable mesh is dependent upon the size of the mesh and its distance from the camera. Command Line Values to Tweak: r.Shadow.FadeResolution - controls how big the light has to be on the screen before it starts to fade out. - Default Value: 64 - Can lower this value to keep shadows from fading out at further distances r…

And specifically this:

> [@Shadows disappear with increased camera distance](https://forums.unrealengine.com/t/shadows-disappear-with-increased-camera-distance/4690/11):
>
> I have the same problem. For me, changing r.Shadow.RadiusThreshold=0.03 to 0.01 fix it.

---

<div class="post-metadata">

**Author:** ![PhilippeMinuit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeMinuit](https://forums.unrealengine.com/u/PhilippeMinuit)\
**Post date:** [February 12, 2024, 1:44pm UTC](https://forums.unrealengine.com/t/shadows-culling/1674824/3 "2024-02-12T13:44:13Z")

</div>

unfortunately this doesn’t fix it. I don’t really understand what has control over this. Even in renders with game overrides the shadows disappear. This is so dumb just STOP CULLING THE SHADOWS

---

<div class="post-metadata">

**Author:** ![Leomerya12](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leomerya12/32/926321_2.png) [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Post date:** [February 12, 2024, 8:51pm UTC](https://forums.unrealengine.com/t/shadows-culling/1674824/4 "2024-02-12T20:51:47Z")

</div>

Are you positive you correctly did the previous procedure?

I found another thread with the exact same solution and positive results:

> [@How to increase shadow distance view](https://forums.unrealengine.com/t/how-to-increase-shadow-distance-view/1152698):
>
> How can I increase the distance before the shadows aren’t showed anymore? Right now this is the distance: [[Shadow disappear UE5] ](https://www.youtube.com/watch?v=LTKIDlXtQPU) I want to increase it even more as I have some scenes where the camera will be like this, top down from a bit far away, but I still want the shadows to appear. Because general hardware isn’t quite there yet to support lumen on mid range GPU’s, I’ll focus more with it disabled, and maybe add support for it later (but even with Lumen enabled, the shadows d…

Worse comes to worst, you can “fake” the shadows. But keep in mind that shadows are VERY expensive because they are constantly moving and reacting to the environment.

---

<div class="post-metadata">

**Author:** ![PhilippeMinuit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeMinuit](https://forums.unrealengine.com/u/PhilippeMinuit)\
**Post date:** [February 15, 2024, 7:43pm UTC](https://forums.unrealengine.com/t/shadows-culling/1674824/5 "2024-02-15T19:43:18Z")

</div>

It is for a 3D visit app so the lighting needs to be dynamic, I cannot bake the shadows either because the sun can be changed with a time of day variable.

Here is r.Shadow.RadiusThreshold 0.03

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/5/565299f5cbf59be6d412166f4c0c837fc302fa84.jpeg)

And now r.Shadow.RadiusThreshold 0.01

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/d/9fd55abfb02fc34f2246eb2b3f4ef68531373ae6.jpeg)

Exactly the same

---

<div class="post-metadata">

**Author:** ![PhilippeMinuit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeMinuit](https://forums.unrealengine.com/u/PhilippeMinuit)\
**Post date:** [February 15, 2024, 7:56pm UTC](https://forums.unrealengine.com/t/shadows-culling/1674824/6 "2024-02-15T19:56:26Z")

</div>

Even in rendering, the Game Overrides isn’t overriding anything. I still lose shadows at a certain distance.

---

<div class="post-metadata">

**Author:** ![Leomerya12](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/leomerya12/32/926321_2.png) [@Leomerya12](https://forums.unrealengine.com/u/Leomerya12)\
**Post date:** [February 15, 2024, 8:45pm UTC](https://forums.unrealengine.com/t/shadows-culling/1674824/7 "2024-02-15T20:45:37Z")

</div>

Do the shadows START to disappear at the same distance?

And you can play around with the values. It doesn’t have to be …03 or .01.

---

<div class="post-metadata">

**Author:** ![PhilippeMinuit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeMinuit](https://forums.unrealengine.com/u/PhilippeMinuit)\
**Post date:** [February 19, 2024, 2:42pm UTC](https://forums.unrealengine.com/t/shadows-culling/1674824/8 "2024-02-19T14:42:11Z")

</div>

Yes, changing the values does not affect when the culling starts. I move my camera to the point where it has began to cull the shadows, so if the setting increases the culling distance then the shadows should come back in to view, but they don’t.

Even if I put 0.0000001, it doesn’t change anything. For that matter even 0 (which should give infinite distance for shadows) does nothing.

I’m at a bit of a loss here. I do architectural rendering and developed an Immersive App for project visits. My images now look weird when the cars and characters 50m away don’t have any shadows…

---

<div class="post-metadata">

**Author:** ![PhilippeMinuit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeMinuit](https://forums.unrealengine.com/u/PhilippeMinuit)\
**Post date:** [February 19, 2024, 3:07pm UTC](https://forums.unrealengine.com/t/shadows-culling/1674824/9 "2024-02-19T15:07:53Z")

</div>

Holy S\*\*T, I have absolutely no idea why this works but changing the Bounds Scale to something like 1.5 has a DRASTIC impact on the distance at which shadows seem to cull. However, I have no way to select all the meshes in my scene and set increase their scale. Is their a command that could change this??

> [@Shadows disappear with increased camera distance](https://forums.unrealengine.com/t/shadows-disappear-with-increased-camera-distance/4690/20):
>
> Is there a solution if you’re using spotlights instead of directional lights? My shadows seem to disappear when the camera is about 6-8k units away from the spotlight. EDIT: So my problem was that the bounds on the meshes that had clipping/disappearing shadows had to be increased. Select Mesh-\>Rendering-\>Bounds Scale.

---

<div class="post-metadata">

**Author:** ![PhilippeMinuit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@PhilippeMinuit](https://forums.unrealengine.com/u/PhilippeMinuit)\
**Post date:** [February 19, 2024, 3:30pm UTC](https://forums.unrealengine.com/t/shadows-culling/1674824/10 "2024-02-19T15:30:50Z")

</div>

Here is what I did:

The bounds Scale parameter on static meshes seem to directly affect the distance at which an actor’s shadow is culled.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/1/2c11b917eb41fbf50b8348ccd81f2623512597ed.png)

To optimize the time it would take to do this manually for all actors, I created a blueprint that changes the bounds scale of all static mesh actors in the scene when I run the command. It is VERY simple and effective.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/9/3/5934e2b7f4644bdae339c0707ba30e738ff449a0.png)

THE RESULT:  
before vs after

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/f/c/3fc6ac559ac108552100789a27ae3a6d637fc1af.jpeg)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/0/e/60e64421b2603963d923f86910d574e06d4f1ca4.jpeg)

P.S. Other commands like **r.Shadow.RadiusThreshold** and **r.Shadow.FadeResolution** had absolutely no effect for me in unreal 5.3, so this was the only option that actually had an impact.

---

<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:** [March 20, 2024, 3:31pm UTC](https://forums.unrealengine.com/t/shadows-culling/1674824/11 "2024-03-20T15:31:10Z")

</div>

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