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

Shadows/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.

Comments (3)

  1. 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.

  2. 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.

  3. 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.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.