Search Issue Tracker
Won't Fix
Votes
0
Found in
2023.1.0b19
2023.2.0a17
Issue ID
UUM-37080
Regression
No
Some shadows rendered in Editor are not rendered when in Player
How to reproduce:
1. Open the “shadow_repro“ project
2. Look around the scene and observe the shadows
3. Build and Run
4. Observe the shadows in the Player
Expected result: Scene looks the same in Editor and Player
Actual result: Scene is missing some shadows in the in Player (image attached)
Reproducible with: 2023.1.0b19, 2023.2.0a17
Could not test with: 2021.3.26f1, 2022.3.0f1 (errors)
Reproducible on: Windows 10
Note: Only reproducible in Player
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
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
The problem is that the keywords for MainLight Shadows, in the ToonShading subgraph, are incorrectly set up. They are currently set up as two separate shader features, one for MAIN_LIGHT_SHADOWS and another for MAIN_LIGHT_SHADOWS_CASCADES. These need to be removed.
Then an enum keyword needs to be added to the subgraph, set as a multi_compile with _MAIN_LIGHT as the reference value. Then the three enum values should be OFF, SHADOWS and SHADOWS_CASCADES. With that you have made an identical keyword structure (except for Screen Space Shadows) to the ones used in URP's Shaders.
There is also an issue in the Toon shadergraph, used in the project, with how shadows are being calculated. Using a default URP Lit or a Lit ShaderGraph does not produce the same issues.