# New BUG (regression). Shadows destroyed since UE5.2

**URL:** <https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423>\
**Category:** Issues and Bug Reporting\
**Tags:** bug, Shadows, unreal-engine, bug-report, Rendering, Lumen, Lighting\
**Created:** [May 11, 2023, 11:48am UTC](https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423 "2023-05-11T11:48:09Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Miguel1900](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/miguel1900/32/1010694_2.png) [@Miguel1900](https://forums.unrealengine.com/u/Miguel1900)\
**Post date:** [May 16, 2023, 11:19am UTC](https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423/6 "2023-05-16T11:19:01Z")

</div>

Hi @Amanda.Schade ,

I have continued doing tests and I have noticed a certain scenario (may be more, as there are tons of combinations).

For a 100% success scenario, it seems related with any project created with a different version than 5.1 (As I couldn’t reproduce it creating the project with 5.1 version). I have recorded this with a 5.0 project, but if I noticed this error before, it’s because I also tested older projects, made with UE4.27 for example:

(If created with 5.0, but opened later with 5.1 and saving the changes, to ‘convert’ the project to 5.1, the error will persist anyway. This is also shown in the recorded video)

[https://dl.dropboxusercontent.com/s/qttav7tru6hubmi/bug\_lighting.mp4?dl=0](https://dl.dropboxusercontent.com/s/qttav7tru6hubmi/bug_lighting.mp4?dl=0)

Steps summary:

- Create a 5.0 project
- Open a default map (it may work with other maps too, not tested)
- Delete all except the Floor mesh (it may work without deleting anything, not tested)
- Add a Directional Light (it probably happens with any other lighting, not tested)
- Add tons of cubes (something like 250)
- Enable Ray tracing hardware and shadows in project settings
- Close & Save, & open with UE5.2
- _Bonus bug: before destroying the lighting, go away with the camera. RT shadows will dissapear with the distance. Ok, go close again._
- Duplicate some of the cubes, to reach something like 280 cubes or more (this seems to be near the critical number of actors, or of static meshes, not sure)
- Lighting will be destroyed

Perhaps it may be related with other raytracing shadows bugs, if something is broken from ‘the base’. Despite of the tittle of the post, these are bugs 100%. The question was rhetoric:

> [@Ray Tracing shadows (and reflections) bugs](https://forums.unrealengine.com/t/are-these-ray-tracing-bugs/1136744):
>
> NOTE: please, enlarge every image to notice the issues. Dirty ‘whity-sketchy’ artifacts (like tons of little lines) around actors’ edges or borders. More noticeables (but not only) when using lights’ source radius higher than 0: The right object is lit, even being in a shadowed area. It seems like an incompatibility between the Megascans master material and the ray traced shadows, so some nodes must be destroying the shadowing:

Thanks!

---

_[View the full topic](https://forums.unrealengine.com/t/new-bug-regression-shadows-destroyed-since-ue5-2/1162423)._
