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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
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. :(