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

Package: Scriptable Render Pipeline Universal

-

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)

  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

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.