Search Issue Tracker
Fixed in 2021.2.X
Fixed in 2019.4.X, 2020.3.X, 2021.1.X
Votes
0
Found in
2019.4.16f1
2020.1.7f1
2020.1.17f1
2020.2.2f1
2021.1
2021.2
Issue ID
1304644
Regression
Yes
First Material data is used for Shadowmap rendering when using multiple Materials with the same Shader and different properties
First Material data is used for Shadowmap rendering when using multiple Materials with the same Shader and different properties. This causes incorrect shadows with artifacts.
Reproduction steps:
1. Open the user's attached project and repro scene
2. In the Hierarchy window, double click TwistedTree GameObject
3. Zoom out with the mouse scroller and observe the shadow
4. Select Window/Analysis/Frame Debugger and Enable Frame debugging
5. Select UniversalRenderPipeline.RenderSingleCamera/ScriptableRenderer.Execute: Forward Renderer/MainLightShadow
6. Expand Shadows.Draw and select Draw Mesh twisted tree_leaves
7. Observe the _BaseMap Texture
Expected result: _BaseMap Texture is Tree Texture
Actual result: _BaseMap Texture is Bush Texture
Reproducible with: 7.3.1 - 7.5.2 (2019.4.16f1 - 2019.4.18f1 ), 8.2.0 - 9.0.0-preview.72 (2020.1.7f1 - 2020.1.17f1), 10.2.2 (2020.2.2f1), 11.0.0 (2021.1.0b2, 2021.2.0a2)
Not reproducible with: 7.3.1 - 7.5.2 (2019.4.0f1 - 2019.4.15f1), 8.2.0 - 9.0.0-preview.72 (2020.1.0a21 - 2020.1.6f1), 8.3.1 - 10.2.2 (2020.2.0a1 - 2020.2.1f1)
Could not test with: 2018.4.30f1, 2020.1.0a1 - 2020.1.0a20 (errors when downgrading URP)
Note: Only reproducible with custom URP shader, it is not reproducible with default URP shaders
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
- The Scene View becomes gray and "NullReferenceException" errors are thrown when attaching the Unity Editor process to RenderDoc
- Memory usage rapidly rises when changing colors in the color wheel
- Physically Based Sky's Horizon and Zenith Tint Color Selection Bars don't have immediate access to color pickers
- EmptyAdditionalLightShadowmapTexture leaks from memory when URP quality level is changed using QualitySettings.SetQualityLevel
- Referenced ScriptableObject field does not get updated and cannot be set to "None" when there are no Objects of that type
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.0a4
Resolution Note (fix version 2021.1):
Fixed in 2021.1.3f1
Resolution Note (fix version 2020.3):
Fixed in 2020.3.5f1
Resolution Note (fix version 2019.4):
Fixed in: 2019.4.25f1