Search Issue Tracker

Won't Fix

Votes

0

Found in [Package]

1.1.8-preview

Issue ID

1165451

Regression

No

[HDRP] UI Mask is ignored when UI element containing the Mask is placed infront of Gameobject with Subsurface Scattering

Package: Scriptable Render Pipeline HD

-

How to reproduce:
1. Open the attached project("Test_2018.3.6f1")
2. Go to Project > Assets > Scenes > Sample Scene
3. Observe Game View window

Expected results: only the circle is visible
Actual results: part of the white rectangle is visible

Reproducible with: 2018.4.3f1(4.10.0), 2019.1.8f1(5.16.1), 2019.2.0b8(6.7.1), 2019.3.0a8(6.5.3)

Notes:
- Couldn't test package versions before 1.1.8-preview due to incompatibility errors.

  1. Resolution Note:

    The issue comes from the fact that the default UI shader tests stencil with a ref of 1. This is not compatible with HDRP which uses stencil buffer in a very different way from legacy. It is advised to use HDRP unlit shader when doing world UI like this.

Add comment

Log in to post comment