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
- Rigidbody2D.Slide API does not have the needed configuration when creating a 2D Top-Down character controller
- Opening reference for "Playables"component redirects to a missing page
- Sprite Renderer image is changed when switching Mask Interaction and changing Sprite to a shared Sprite
- An unsigned integer is not compared with an integer correctly in player when using IL2CPP backend
- Graphical artifacts are being rendered in Scenes that are loaded during run-time when GPU Resident Drawer is turned on
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.