Search Issue Tracker
Fixed in 8.3.1
Votes
11
Found in [Package]
7.1.8
Issue ID
1217091
Regression
No
[Universal RP][2D] 2D Light is rendered behind a GameObject with Shadow Caster when the GameObject is close to the light source
How to reproduce:
1. Open the project from the file "1217091.zip"
2. Inspect the Scene View and then select the "Box" GameObject from the Hierarchy and change its X Scale to 15
3. Inspect the Scene View again and compare before and after changing the scale
Expected behavior: shadow of the GameObject is the same height as before
Actual behavior: shadow of the GameObject is shorter
Reproducible with: Universal RP 7.1.1(2020.1.0a1), Universal RP 7.1.7(2020.1.0a1, 2020.1.0a22), Universal RP 7.1.8(2019.3.0f6, 2020.1.0a22)
Could not test with: 2017.4.36f1, 2018.4.17f1(2D Renderer not introduced), Universal RP 7.0.0, 7.0.1(Shadow Caster 2D not introduced)
Notes:
- Project of reproduction attached in the edit
- Also reproducible with Freeform and Parametric lights
-
Piwovsky
Sep 01, 2021 08:27
Still doesn't work with latest URP how to fix that? At certain angles when im rotating my freeform light it exceeds the shadow...
-
PhaneV
Feb 28, 2020 13:09
Hey. This happens to me too.
I hit this issue with LWRP, tried with URP too.
Unity 2019.3.0f6.
Voted! -
Major_Lag
Feb 25, 2020 02:36
I have found that then the shadowcaster is sufficiently thin compared to the range light source that you can get a reproduction. Reproduction happens when the light gets too close to the shadowcaster.
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
- Crash on ShaderLab::ShaderState::ApplyShaderState when entering Play Mode and calling ShaderWarmup.WarmupShaderFromCollection with a shader that has dynamic_branch
- Crash on operator delete[] when a serializable structure in the System namespace is serialized by a MonoBehaviour
- [macOS] forward and backward mouse buttons are recognized as middle mouse button
- NavMeshModifier.OnEnable/OnDisable gets progressively slower when called repeatedly
- "System.Net.CookieContainer" throws an "ArgumentException" error when using a non-UTF-8 machine locale and hostname
Resolution Note (fix version 8.3.1):
A fix for this issue is available on Universal RP package 8.3.1 and above