Search Issue Tracker
By Design
Votes
2
Found in
2021.3.33f1
2022.3.16f1
2023.2.4f1
2023.3.0b1
6000.0.0b11
6000.1.0a7
6000.2.0a1
Issue ID
UUM-59361
Regression
No
Volumetric Light 2D affects 2nd Sorting Layer when it's enabled for 1st and 3rd Sorting Layers
How to reproduce:
Open the attached project "Light 2D Sorting Issues.zip"
Expected results: Volumetric Light doesn't affect 2nd Sorting Layer
Actual results: Volumetric Light affects 2nd Sorting Layer
Reproducible with: 2021.3.33f1, 2022.3.16f1, 2023.2.4f1, 2023.3.0b1
Reproducible on: Windows 11 22H2
Not reproducible on: No other environment tested
Comments (1)
-
solideo_games
Aug 31, 2024 21:43
More detail: The 2D volumetric lights are rendering over the top-most enabled layer as well as all layers below that, regardless of whether or not they are enabled. It only respects disabling on the top-most enabled layer, so layers can only be disabled from the top-down sequentially.
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:
2D volumetric lights act as a additional post process on top of target layers. In your case, as the volumetric light targets layers 1 and 3 - we wait till after layer 3 has been rendered to apply the volumetric effect, which causes layer 2 to be affected by the light.
I recommend reorganizing your scene so that layers with volumetric lights are prioritized and can be either on the same layer or adjacent layers. Eg. Volumetric light targets layers 1,2. Sprites in layers 1 and 2 will receive lighting and sprites in layer 3 will not.