Search Issue Tracker
Duplicate
Votes
2
Found in
5.1.1p4
Issue ID
714587
Regression
No
[Shadow] Non shadowed areas on the asymetrical rendering.
Steps to reproduce:
1. Open the attached project
2. Open and play scene 'Shadows'
3. Notice shadows look as expected
4. On the script UniversalCamera attached to the "Main Camera" (which computes & sets the camera matrix projection) check "Override Projection"
5. Modify one of the frustum bounds value (for example, set "left_1m" to -6)
6. Notice the shadows on the left get cropped
Increasing camera's field of view value will eventually render shadows correctly, but decrease shadow quality significantly.
Comments (2)
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
- 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
jpfranssen
Jan 25, 2016 21:37
Possibly duplicate: https://issuetracker.unity3d.com/issues/shadow-moves-in-relation-to-the-object-that-casts-it-when-using-a-custom-projection-matrix
Martin Cervinka
Oct 22, 2015 10:59
Can't check UniversalCamera script, but I do probably the same in my AsymmetricFrustum script. I guess Unity has this issue since beginning. Shadow calculations probably don't care about projection matrix. Just counts with camera's transformation, field of view, ... Yes, you have to set camera's field of view to cover whole frustum not just his asymmetric part and yes that can decrease shadow quality significantly and probably slow down other calculations like culling. :(