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
- Errors "InvalidOperationException: Trying to use a texture (_InternalGradingLut)..." and “Render Graph Execution error” shown and Scene turns black when 16 or more Render Objects are used
- GameObjects in the Game View are rendered differently than in the Scene View when the Rendering Path is set to "Deferred" and Screen Space Shadows Renderer Feature is added
- Errors “InvalidOperationException: Trying to use a texture (_CameraDepthTexture)...” and “Render Graph Execution error” shown when selecting GameObjects with Mesh Renderer from the Hierarchy
- macOS stutters in a minimal project
- [Usability] HDRP Wizard calls for VR fixes when opening the HDRP Wizard a second time after they have already been applied and the Wizard has finished checking
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 .