Search Issue Tracker
Duplicate
Votes
1
Found in [Package]
5.11.1 - 5.16.1
Issue ID
1173100
Regression
No
[LWRP] Shadows are rendered through gameobjects when Cascades are used
How to reproduce:
1. Open attached Unity project
2. Enter the play mode
3. Walk up to the space ship on the upper floor, stand in the sunlight but look towards some shadows
Expected result: There should be no shadows on the gun.
Actual result: Shadows are rendered on top of the gun.
Reproduced with: 2019.1.14f1, 2019.2.1f1.
Reproduced on LWRP Package: 5.11.1 - 5.16.1.
Notes:
This issue disappears when "No Cascades" is selected under Shadows/Cascades dropdown in FPSDemoCompleted Asset.
This issue is visible only on 2019.1 and 2019.2 versions of Unity. In other versions project loads with errors.
Can't test Platform Importance because of a broken shader.
Comments (1)
-
gustavolsson
Aug 14, 2019 09:14
Actually, the problem is not that cascaded shadows do not show up on alpha blended objects, the problem is that the stencil buffer is used to render the gun at a different field of view in that particular scene (that's what the example scene shows how to do, check out the LWRP asset). The gun is rendered before any other object in the scene and it also marks the stencil buffer pixels where it is rendered. Then, the rest of the scene is rendered in places where the stencil buffer is not marked, the problem is that the screen space shadow resolve texture (that is only active when cascades are enabled) does not respect this stencil buffer override and thus renders ontop of the gun. The rest of the geometry would also render on top of the gun if it didn't respect the stencil buffer override.
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
- "Shader warning in 'Hidden/Light2D': implicit truncation of vector type" is thrown when building Universal 2D template
- AI Assistant breaks compilation of packages using System.Runtime.CompilerServices.Unsafe via auto-referencing
- Unity Hub checks the "Documentation" module by default on the 6.4 and 6.5 streams despite that it was unchecked with the previous installs
- Shortcut that toggles between Dopesheet and Curves Views in the Animation Window's Timeline is mislabed
- Property List Items Overlap onto the Property List's top edge when scrolling through a long Property List
This is a duplicate of issue #1116936