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
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
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 .