# Shadows disappear with increased camera distance

**URL:** <https://forums.unrealengine.com/t/shadows-disappear-with-increased-camera-distance/4690>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [May 20, 2014, 5:07am UTC](https://forums.unrealengine.com/t/shadows-disappear-with-increased-camera-distance/4690 "2014-05-20T05:07:45Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![noswahj](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/noswahj/32/467449_2.png) [@noswahj](https://forums.unrealengine.com/u/noswahj)\
**Post date:** [May 31, 2014, 8:31pm UTC](https://forums.unrealengine.com/t/shadows-disappear-with-increased-camera-distance/4690/13 "2014-05-31T20:31:25Z")

</div>

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.Shadow.MinResolution** - controls how big the light has to be on the screen before it _finishes_ fading out, at which point it no longer has cost.  
- Default Value: 32  
- Lower values seem to increase shadow visibility.

**r.Shadow.TexelsPerPixel** - Causes a higher resolution to be assigned and then it should fade out less aggressively  
- Default Value: 1.27324  
- Can increase this value to improve shadow rendering visibility & quality

**r.Shadow.RadiusThreshold**  
- Default Value: 0.03  
- A lower value of 0.02 or 0.01 greatly increases shadow visibility at far camera distances (seems to have the most impact of all the console commands).

**Useful Link:** [https://docs.unrealengine.com/latest/INT/Engine/Rendering/Scalability/ScalabilityReference/index.html](https://docs.unrealengine.com/latest/INT/Engine/Rendering/Scalability/ScalabilityReference/index.html)

---

_[View the full topic](https://forums.unrealengine.com/t/shadows-disappear-with-increased-camera-distance/4690)._
