Search Issue Tracker
Duplicate
Votes
0
Found in [Package]
7.4.1
Issue ID
1265895
Regression
No
[URP 2D Renderer] SpriteMask with specific layer order does not work if there is a Light 2D with "UseNormalMap" enabled
How to reproduce:
1. Open attached project "2DLight_NormalMap_Spritemask_Issue.zip" and scene "SampleScene"
2. Open Edit -> Project Settings -> Tags and Layers
3. In Tags and Layers, make 'Layer Default' in the middle of Layers Background and Overlay
4. In Game view
Expected result: the mask still works and there is a hole in the middle of the white circle
Actual result: the mask does not work and there is no hole in the middle of the white circle
Reproducible with: 2019.4.7f1 (7.4.1), 2020.1.1f1 (8.2.0), 2020.2.0a20 (9.0.0-preview.35)
Not reproducible with: 2019.4.7f1 (7.3.1)
Could not test with: 2018.4.26f1 (2D Renderer was not yet implemented)
Notes:
If the light is removed or "UseNormalMap" is disabled then the issue does not reproduce
Comments (1)
-
Qxlbr
Aug 03, 2020 17:29
Additional infos: it worked in URP 8.1, but not in URP 8.2 anymore.
However it works in URP 9.0 Preview v14 again!
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
This is a duplicate of issue #1199213