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
- After converting a Built-in project to URP render texture related errors are spammed that can lead to Game view being rendered on top of Scene view
- UI Builder slider value lags and stutters when sliding/modifying certain property values
- "Reset UI Builder Layout" functionality inconsistently changes Canva Size when "Match Game View" is enabled/disabled
- Texture Import Warnings are obscured by other Terrain Layer options in the Inspector
- Burst Inspector middle divider is jittering when resized with the Burst Inspector window docked
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. :(