Search Issue Tracker
By Design
Votes
0
Found in
2021.3.47f1
2022.3.55f1
6000.0.32f1
6000.1.0a9
Issue ID
UUM-91185
Regression
No
Shadow maps are not evicted from Shadow Atlas when Light component with "preserveCachedShadow" property set to false is disabled
Reproduction steps:
1. Open the attached project “IN-90971“
2. Open the scene “ExampleScene“
3. Open the Rendering Debugger. Go to Window → Analysis → Rendering Debugger
4. Open the Lighting tab and for the Shadow Debug Mode option, select “Visualize Cached Punctual Light Atlas“
5. Enter Play Mode
6. Try toggling the light components using UI provided
7. Observe the result
Expected result: Disabling the light components with preserveCachedShadow disabled should evict their light texture from the shadow atlas
Actual result: Disabling the light components with preserveCachedShadow disabled did not evict their light texture from the shadow atlas. Thus, other light components with preserveCachedShadow disabled are unable to be added to the shadow atlas.
Reproducible in: 2021.3.47f1 2022.3.55f1, 6000.0.32f1, 6000.1.0a9
Reproducible on: macOS 14.6.1 (M1 Pro), Windows 10
Not reproducible on: No other environments tested
Note:
- Also reproducible in Player
- To enable “Visualize Cached Punctual Lights Atlas” option in Player. Enable “Development Build“ before building a Player, then press LeftCtrl+Backspace (LeftCtrl+Delete on macOS) to open the Rendering Debugger Menu. Open the Lighting tab and for the Shadow Debug Mode option, select “Visualize Cached Punctual Light Atlas“. Close the Debugger menu by pressing the same combination of buttons. Make sure that “Runtime Debug Shaders“ option is enabled in HDRP Global Settings asset
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
Closing this as designed. In the provided project, the HDAdditionalLightData was not being disabled, meaning that it was never evicted from the Cached Shadow Manager.