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
7000.0.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
- Channel remapping dropdown in the Terrain Layer does not open when clicked on the title
- The Editor freezes indefinitely when a large number of elements are entered in the Subgraphs or Categories lists
- Some Visual Effects package Assets links to documentation are not working
- Heatmap asset’s documentation button in the Inspector window leads to “Sorry... that page seems to be missing!” page when clicked
- Crash on MonoBehaviour::CallMethodIfAvailable when performing various actions
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.