Search Issue Tracker
Fixed
Fixed in 2022.3.18f1, 2023.1.0a19
Votes
0
Found in
2022.3.16f1
2023.1.0a2
Issue ID
UUM-7816
Regression
Yes
[HDRP] Wrong material variant picked in player
Does not reproduce on: 2020.3.30f1, 2021.3.5f1
Reproduces on: 2023.1 + Trunk
__________________________________
More info:
The issue seems to stem from the fact that the right shader variant is not picked. Specifically, we need the variant:
HDRP/Lit _DOUBLESIDED_ON, _DISABLE_SSR_TRANSPARENT, _NORMALMAP_TANGENT_SPACE
for the ShadowCaster pass.
This variant survives stripping as double checked with logging (at the end of TryStripShaderVariants in ShaderPreprocessor.cs in HDRP) however, as shown by debugging and via using the Player.log said variant is not present.
__________________________________
Steps to reproduce:
1) Open attached project or create any object with alpha clipped material assigned to it
2) Observe that shadows cast by alpha clipped meshes look good in editor
3) Build the project and observe that shadows are solid, without any alpha clipping visible
-------------------
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Render Pipeline Converter selected asset counter reports one fewer item when using manual selection
- [Android] [Adreno] [WebGL] A light cookie is not rendered with shader compile error when WebGL build is launched on a device with Adreno GPU
- Rigibody sliding over a flat surface that is made of several GameObjects detects false collisions when Collision Detection is set to "Continuous" or "Continuous Dynamic"
- UI Toolkit Label height is incorrectly calculated when using max-width with percentage value
- Visual Effect Material causes Scene view to update continuously when both Scene and Game views are open, despite "Always Refresh" being disabled
Add comment