Reproduction steps:
1. Open the attached "IN-139778_UnityBugRepo3.zip" project
2. Open the "Assets/StaticShadowCasterNotWork/StaticShadowCasterNotWork.unity" scene
3. Enter Play Mode
4. In the on-screen UI in top-left corner, enable the Status toggle
5. Click "Set StaticShadowCaster"
6. Observe the scene shadows (no change)
7. Click “Set StaticShadowCaster 2”
8. Observe the scene shadows again (disappear since renderer is set dirty)
Actual result: Shadows do not update and remain visible after changing Renderer.staticShadowCaster, unless renderer is set dirty
Expected result: Shadows update and disappear because it's filtered to dynamic-only objects without the need to set renderer as dirty
Reproducible with: 2023.3.0a8, 6000.0.73f1, 6000.3.14f1, 6000.4.4f1, 6000.5.0b5, 6000.6.0a3
Could not test with: 2023.3.0a7 (GPU Resident Drawer not released yet)
Reproducible environment: Windows 11
Not reproducible environment: No other environments tested