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&)
Comments (1)
-
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
- A 404 page is opened when selecting "Open Documentation" on the Float Node in Shader Graph
- Shader Graph Importer's Documentation Reference button leads to a 404 page
- Crash on WriteParticleLineVertex when particle systems are rendered in a specific project
- Asset names longer than the allowed system file path are not handled gracefully
- Moving VFX Particles leave a ghosting trial in Ray Traced Screen Space Reflections
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.