Search Issue Tracker
By Design
Votes
12
Found in
2018.3.0a1
2018.3.7f1
2019.1.0a1
2019.2.0a1
2019.3.0a1
2020.1
Issue ID
1159220
Regression
No
Light.layerShadowCullDistances() has no effect when using Spot and Point Lights
How to reproduce:
1. Download and open the submitted project
2. Scroll away from the Sphere in the Scene view
3. Scroll towards the Sphere until the shadow is visible
4. Change the Type of Directional to Spot or Point Light
5. Scroll away from the Sphere in the Scene view
Expected result: Sphere's shadow disappears due to culling
Actual result: Sphere's shadow does not disappear
Reproducible with: 2018.4.2f1, 2019.1.7f1, 2019.2.0b6, 2019.3.0a6
Notes:
Light.layerShadowCullDistances() does not exist in Unity 2017.4, therefore the issue is not reproducible in that stream.
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
- Color mismatch in UI Builders Library panel when the Editors theme is set to Light Mode
- [Android ] "AndroidJNI.ToBooleanArray" returns a random non-zero value instead of "IntPtr.Zero" when the method argument is null
- Non-HDR color picker opens when selecting material color with HDR enabled
- Crash on EditorApplication:Internal_CallUpdateFunctions when pushing property block by index to SpriteShapeRenderer
- Depth Texture Mode "After Opaques" breaks when "Full Screen Pass Renderer Feature" is added
Sam_ToS
Sep 03, 2019 21:30
To be clear, as I didn't see it explicitly mentioned here: It does work for Directional Lights as expected, but not for Point or Spot Lights.
As others have already mentioned, this would be very helpful for Point and Spot Lights. However, if this is intended to only work for Directional Lights, it would be helpful for the documentation to be updated to state this.
chingwa
Jul 12, 2019 15:39
Can confirm Light.layerShadowCullDistances does not work with point lights shadows. This is quite disappointing and I hope this is fixed in the future. Being able to cull point light shadows per layer would give great performance benefits.
Kolyasisan
Jun 25, 2019 10:35
Shadows are one of the most expensive aspects in our project, so having this issue fixed will help us tremendously on consoles.