commit | 2e023f3827dfc0dfc1ed7c3dd54d02b4a993f0b4 | [log] [tgz] |
---|---|---|
author | ztenghui <ztenghui@google.com> | Mon Apr 28 16:43:13 2014 -0700 |
committer | ztenghui <ztenghui@google.com> | Mon Apr 28 16:43:13 2014 -0700 |
tree | ba319249cf92343e7d7488480a9646a235566ef9 | |
parent | 7940dc57e3ffcf9c4a33375215f3a42250fa896c [diff] |
Make sure the theta is correctly represented and incoming polygon is CW for shadow. Now the theta = 0 should be on +x axis. And cos(theta) should correctly represent x value. Without this fix, the poly theta (from atan2) can be wrongly rotated 90 degrees. Also, make sure the incoming polygon is CW for the shadow system. This fix visual artifacts in recent regression for spot shadows. bug:13553955 Change-Id: I9bbf54db094e7f133326da4dae4610962da849c1