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
- Changing the Visual Element size moves it when two visual elements are close to each other
- Open Reference for Default Style Sheet asset redirects to missing page
- Undoing changes to Default Style Sheet does not show change until editor refresh
- TextMeshPro Caret has an active raycast when TMP_InputField is non-interactable
- Shadows do not smoothly fade in when transitioning between real-time shadows and baked distance shadows
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 .