Search Issue Tracker

Duplicate

Votes

2

Found in

5.1.1p4

Issue ID

714587

Regression

No

[Shadow] Non shadowed areas on the asymetrical rendering.

Shadows/Lights

-

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)

  1. 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. :(

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.