Search Issue Tracker
By Design
Votes
0
Found in [Package]
12.0.0
Issue ID
1407667
Regression
Yes
[Universal RP] Stencil buffer is cleared when disabling SSAO and/or Depth Texture
How to reproduce:
1. Open the user's attached project "HighlightTest.zip"
2. Open Game View
3. Select "ForwardRenderer" (Assets > Repro > URP Settings) and disable SSAO
4. Observe changes in the sphere GameObject's glow
Expected result: Sphere GameObject's outer glow is behind the GameObject
Actual result: Sphere HameObject's outer glow is in front of the GameObject
Reproducible with: 12.0.0 (2021.2.0b2), 12.1.6 (2021.2.19f1), 13.1.1 (2022.1.0a16)
Not reproducible with: 7.7.1 (2019.4.37f1), 10.8.1 (2020.3.33f1), 12.0.0 (2021.2.0b1), 13.1.3 (2022.1.0b1), 13.1.7 (2022.1.0b15), 14.0.2 (2022.2.0a10)
Notes:
- Disabling Depth Texture in "UniversalRenderPipelineAsset" (Assets > Repro > URP Settings) when SSAO is disabled will not reproduce the issue
- Disabling Anti Aliasing (MSAA) in "UniversalRenderPipelineAsset" after disabling SSAO and/or Depth Texture will not reproduce the issue
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
- Nested Canvases with the same Order in Layer ignore Z position for render order when sharing parent Canvas
- ShaderGraph Material subasset loses texture reference when reimporting all assets while using a scripted importer
- Values changed on a prefab are not retained when entering Play Mode
- Shadow Caster 2D shadows partially disappear in specific spots when used with Composite Collider 2D in the Game view
- Hierarchy and Library parts in UI Builder are inaccessible when UI Builder window is resized and these elements no longer fit in the window
Resolution Note:
This behavior is by design as setting SetRenderTarget at the start of the render feature eliminates the issue. As discussed here: https://unity.slack.com/archives/CAR8G94EL/p1646140659190639