Search Issue Tracker

Won't Fix

Votes

1

Found in

2022.3.19f1

2023.2.9f1

Issue ID

UUM-62842

Regression

No

URP Shadows are inconsistently rendered when observed in the Player

--

-

Reproduction steps:
1. Open the attached “Egg Game.zip” Project
2. Open the “BaseScene” and enter the Play mode
3. Move in the Game so that the “słoiki (3)” (Jar) GameObject is visible, using WASD keys
4. Observe the “słoiki (3)” GameObjects' shadow on the wall while moving up and down
5. Exit the Play mode
6. Build and Run the Project (File > Build and Run)
7. Repeat 3rd and 4th steps

Expected result: “słoiki (3)” GameObjects' shadow on the wall is consistently shown, like in the Play mode
Actual result: “słoiki (3)” GameObjects'' shadow disappears based on the Players' position

Reproducible with: 2022.3.19f1, 2023.2.9f1
Couldn’t test with: 2021.3.34f1 (Unfixable compiler errors due to downgrading), 2023.3.0b6 (3rd Party Package associated errors)

Reproducible on: Windows 11
Not reproducible on: no other environment tested

Note:
- Build would usually only be successful on the second try

  1. Resolution Note:

    The keywords for Main Light Shadows were incorrectly set up. In the shader it was possible to have both _MAIN_LIGHT_SHADOWS and _MAIN_LIGHT_SHADOWS_CASCADE enabled at the same time, which is incorrect as only one should be active. Fixing that solves the issue presented in this case.

Add comment

Log in to post comment