Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
9.0.0-preview.13, 8.1.0, 7.1.7
Issue ID
1255959
Regression
Yes
[HDRP] "Cascade Shadow atlasing has failed" errors are thrown on adding a new scene additively
In a HDRP template, when a new basic scene is created and added additively to the sample scene, "Cascade Shadow atlasing has failed" errors are thrown in console. Refer the attached video
Steps to repro:
1) Create a new project
2) File > New Scene
3) Basic > Load Additively > Create
Actual result: "Cascade Shadow atlasing has failed" errors are thrown in console
Expected result: No errors are thrown in console
Note:
- For versions lower than 2020.2.0a15 adding any test scene additively to HDRP demo scene reproduces this bug
- Does not reproduce with other templates
Occurring in: 2020.2.0a15, 2020.1.0b13, 2019.4.0f1, 2019.2.18f1, 2019.1.0b7
Working fine in: 2019.1.0b6
Environment: Both Windows and Mac
Stack trace:
Cascade Shadow atlasing has failed, only one directional light can cast shadows at a time
UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
-
laurentlavigne
May 06, 2023 02:32
old BRP could render more than 1 directional light shadow map and HDRP is supposed to be superior to BRP so I don't see the logic of pushing for a new renderer that is more limited. Clarification needed.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The type selector in the UI Builder does not display primitive types when trying to select one in the "Select Type…" window
- Inspector's custom tooltip is displayed incorrectly when the name is truncated in UI toolkit
- Crash on ScriptableRenderLoopDraw when rendering a specific VFX in Play Mode
- The script is not renamed in the Project window when renaming and a compilation Error is present
- Average FPS in Play Mode degradation on a newly created BiRP project when it's upgraded from 2020.3.48f1 to a newer Editor version
Resolution Note:
When adding a new scene additively , it will add a new directional light. Because the directional lights in those scenes are casting shadows by default, you'll end up with two directional lights casting shadows. In such situations the error is expected as HDRP supports only one shadow casting directional light, is up to the user to decide which one it is.
Note that the issue is not specific to the template scene, as long there is one visible object in a scene with a shadow casting directional light and add a scene with another shadow casting light.