Search Issue Tracker

In Progress

Under Consideration for 2021.3.X, 2022.3.X

Votes

0

Found in

2021.3.32f1

2022.3.13f1

2023.2.0b18

2023.3.0a14

6000.0.0b11

Issue ID

UUM-56026

Regression

No

Light.useViewFrustumForShadowCasterCull not working properly for Shadow Cascades

--

-

Steps to reproduce:
1. Open the attached project "FrustumShadowCullBug.zip" and open "SampleScene.unity"
2. Go to Frame Debugger and confirm that "Sphere 2" shows up on directional shadow map passes
3. Select "Directional Light" and enable the Frustum Cull property in the ToggleFrustumShadowCull component
4. Go to Frame Debugger and confirm that "Sphere 2" does NOT show up on directional shadow map passes
5. Switch to Shadow Cascades Two or Four then repeat the above process. "Sphere 2" never shows up in directional shadow map passes, when using Shadow Cascades

Expected results: "Sphere 2" shows up in directional shadow map passes, when using Shadow Cascades
Actual results: "Sphere 2" never shows up in directional shadow map passes, when using Shadow Cascades

Reproducible with: 2021.3.32f1, 2022.3.13f1, 2023.1.20f1, 2023.2.0b18, 2023.3.0a14

Reproducible on: Windows 10
Not reproducible on: No other environment tested

Notes:
-Project starts with No Cascades and Light.useViewFrustumForShadowCasterCull=false, applied via ToggleFrustumShadowCull component attached to "Directional Light"
-When using No Cascades, it behaves as expected: "Sphere 2" disappears or appears from directional shadow map, depending on how whether Light.useViewFrustumForShadowCasterCull is enabled or disabled, respectively

  1. Resolution Note:

    light.useViewFrustumForShadowCasterCull now works as expected for shadow cascades.

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.