Search Issue Tracker
Fixed in 2021.3.42f1
Fixed in 2021.3.X, 2022.3.X, 6000.0.X, 6000.0.7f1, future release
Votes
0
Found in
2021.3.32f1
2022.3.13f1
2023.2.0b18
2023.3.0a14
6000.0.0b11
Issue ID
UUM-56026
Regression
No
Light.useViewFrustumForShadowCasterCull not working properly for Shadow Cascades
Steps to reproduce:
1. Open the attached project "FrustumShadowCullBug.zip" and open "SampleScene.unity"
2. Go to Frame Debugger and confirm that "Sphere 2" shows up on directional shadow map passes
3. Select "Directional Light" and enable the Frustum Cull property in the ToggleFrustumShadowCull component
4. Go to Frame Debugger and confirm that "Sphere 2" does NOT show up on directional shadow map passes
5. Switch to Shadow Cascades Two or Four then repeat the above process. "Sphere 2" never shows up in directional shadow map passes, when using Shadow Cascades
Expected results: "Sphere 2" shows up in directional shadow map passes, when using Shadow Cascades
Actual results: "Sphere 2" never shows up in directional shadow map passes, when using Shadow Cascades
Reproducible with: 2021.3.32f1, 2022.3.13f1, 2023.1.20f1, 2023.2.0b18, 2023.3.0a14
Reproducible on: Windows 10
Not reproducible on: No other environment tested
Notes:
-Project starts with No Cascades and Light.useViewFrustumForShadowCasterCull=false, applied via ToggleFrustumShadowCull component attached to "Directional Light"
-When using No Cascades, it behaves as expected: "Sphere 2" disappears or appears from directional shadow map, depending on how whether Light.useViewFrustumForShadowCasterCull is enabled or disabled, respectively
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
- GameObject drops to the last position in the Hierarchy when a RectTransform Component is added
- 'NullReferenceException' error is thrown when the Tutorials window is closed and the "Welcome Dialog" is pressed
- Mouse Postion can become max value or infinity when using touch input with Legacy Input Module
- Crash on RaiseException when creating a multiplayer room while toggling UI
- Performance Markers “Add Column” dropdown has a lot of empty space when opened
Resolution Note (fix version 2022.3):
UseViewFrustumForShadowCasterCull light setting now works for shadow cascades
Resolution Note (fix version 2021.3):
UseViewFrustumForShadowCasterCull light setting now works for shadow cascades