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
- “[Worker0] Could not generate preview image“ error when opening macOS native plugin in the Inspector with Architecture to build for set to ARM 64-bit
- [iOS] Application.absoluteURL is empty on Awake/Start when opening via deep link with Splash Screen disabled
- Crash on MemoryManager::Deallocate when rapidly calling Addressables.LoadAssetAsync
- Crash on physx::shdfnd::atomicIncrement when adjusting values on a character controller component after entering Play mode in Prefab edit mode
- [Rendering Debugger] [NewInputSystem] Debug Overlays in Play mode throws InvalidOperationException when using New Input System
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.