Search Issue Tracker
Won't Fix
Votes
2
Found in [Package]
10.0.0-preview.26
Issue ID
1285322
Regression
No
[URP] Overriding whole RenderingData.ShadowData.bias overrides all shadows when doing custom render pass
How to reproduce:
1. Open the User's attached project ("UniqueShadowSimple.zip")
2. In the Project window find "ForwardRenderer" asset and select it
3. In the Inspector window slide the value for "Override Normal Bias"
Expected results: The normal bias gets overridden only for the target shadow(the cube)
Actual results: All the shadow normal biases get overridden
Reproducible with: 2019.4.13f1, 2020.1.10f1, 2020.2.b09, 2021.1.a03(URP 8.2.0 - 10.0.0-preview.26)
Could not test with: 2018.4.28f1(URP was not yet available)
Notes:
- Call to "OverrideEntireBiasArray(ref renderingData);" located in UniqueShadowRenderPass.cs line 82
- "OverrideEntireBiasArray(ref renderingData)" located in UniqueShadowHelper.cs line 102
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
- Any small change in UI Builder Inspector refreshes Editor Inspector
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Resolution Note:
Changing ShadowData is not enough for overriding shadow bias you still need to call ShadowUtils.SetupShadowCasterConstantBuffer.
We know that writing your custom shadow pass is not trivial task yet and we plan to improve it. However for now I recommend looking up our current shadow pass source MainLightShadowCasterPass.cs .