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
- Serialization error when editing an asset with a class starting with the same name as the namespace that it is in
- TreeView drag and drop is incorrect when dragging a parent directly below itself
- [iOS] AutoRotation gets enabled when App restarts due to being killed by the OS
- Render passes break when using the HDRP CustomPassUtils.RenderFromCamera method in a Custom Pass
- The High Quality Line Renderer stops the hair from being affected by the Screen Space Ambient Occlusion
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 .