Search Issue Tracker
By Design
Votes
2
Found in
5.6.1f1
Issue ID
912590
Regression
No
ShadowCaster culling executed for each light even when light itself is culled due to culling mask
Steps to reproduce:
1. Open attached project
2. Open "asdf" scene
3. Enter play mode
*there are two cameras in the scene: 'Main Camera' with the culling mask set to everything and 'UICamera' with the culling mask set to UI*
4. Open the profiler and navigate to Camera.Render->Culling->SceneCulling->CullAllVisibleLights->Shadows.CullDirectionalShadowCasters
Expected behavior: directional light is not drawn in the UICamera AND culling is not executed (Shadows.CullDirectionalShadowCasters being called only once in this scene for the 'Main Camera')
Actual result: directional light is not drawn in the UICamera but culling is executed nevertheless (Shadows.CullDirectionalShadowCasters being called twice)
Reproducible with: 5.6.0f1, 5.6.1p1, 2017.1.0b6
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
Antony-Blackett
Apr 26, 2018 05:14
This is also an issue if you have turned off shadows in Quality settings. Precious time is wasted culling shadow casters even though shadows is off.
David-Lindsay
Dec 16, 2017 10:07
I have the same issue.
Occlusion Culling is culling shadow casters that should not be culled, resulting in popping shadows everywhere.