Search Issue Tracker
By Design
Votes
0
Found in
2018.2.0f2
Issue ID
1072481
Regression
No
Shadows are incorrectly computed when Shader modifies vertex positions
To reproduce:
1. Open the project (shadow_bug.zip)
2. Open MainScene from the project
3. Enable Material Animation
Expected results: shadows computed from the side of the light
Actual results: shadows appear glitchy on the moving cubes
Reproducible with - 2017.4.9f1, 2018.1.9f1, 2018.2.5f1, 2018.3.0a9
Not tested with earlier versions because the feature was not yet introduced there
Notes:
- The 2 cubes share the same material. Cloning the material fixes the issue.
- The issue seems to depend on the relative position of the 2 cubes. Playing with the cubes positions can make the issue disappear.
- In the frame debugger, we can clearly see the depth map + shadow map pass are not in sync with vertex positions used in forward render pass; it looks like the time passed to the shader is not the same during the different jobs. This does not occur when deferred rendering is used.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on RaiseException when opening a specific project
- DownloadHandlerScript.CompleteContent is called twice when building for WebGL
- Scene view has Y coordinates of the Screen Position node flipped when some of the URP features are disabled
- Volumetric fog shader variants are missing from build when "Strict Shader Variant Matching" is disabled
- Unnecessary modifications clutter the Scene when using a RectTransform driven by a LayoutGroup in a Prefab
Add comment