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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
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.