summaryrefslogtreecommitdiffstats
path: root/libs/hwui/SpotShadow.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of useless codeztenghui2014-03-181-6/+1
| | | | Change-Id: I7fedd0df349e1d9408d58edcab25396e2ff2edd6
* Fix the missing spot shadow when DEBUG_SHADOW is turned onztenghui2014-03-171-1/+3
| | | | | | | In the current design, this error should be tolerated since the delta should be small enough. So we should not return here. Change-Id: I251db2882b331d37ae7f0896e9aa95d69a5650da
* Create one hole inside the umbra area to avoid overdraw.ztenghui2014-03-171-60/+105
| | | | | | bug:13439450 Change-Id: I859575196bd5a3029f447883025a6ec3a1f1face
* Force shadow casters above the Z=0 planeChris Craik2014-03-121-5/+0
| | | | Change-Id: Ifee75414829d4bfb3c7aa6219f1f9bcfd50ff0c6
* Fix orthographic shadows projection, simplify shadow reorderingChris Craik2014-03-121-4/+4
| | | | | | | | | Separate matrix passed to shadow system into two parts, one for transforming the polygon XY points (using the actual draw matrix) and a separate one which respects correct 4x4 3d rotations and translations for determining Z values. Change-Id: I7e30a84774a8709df6b2241e8f51fc5583648fe8
* Improve shadow tessellation performanceChris Craik2014-03-111-118/+129
| | | | | | | | - Tune and simplify shadow parameters - Remove additional inner rings - Improve polygon ray casting algorithm Change-Id: If0f28b2d66ae0480b675942bb65e8fcd2864425d
* Use pre-computed index to draw the shadow.ztenghui2014-02-251-104/+37
| | | | | | | | Also draw the umbra part as triangle fans instead of zig zag fashion. b/12840179 Change-Id: Iaa5d15e77351acdd71f076bd8f9bb2d4d2b92faf
* Merge "Fixing a bad bug when there is no real umbra"ztenghui2014-02-031-10/+8
|\
| * Fixing a bad bug when there is no real umbraztenghui2014-01-311-10/+8
| | | | | | | | | | | | This fixed most of the issues when the light's Z postion is low. Change-Id: If49afbf8aa90b1ce32fd628a62ed982a1a473da2
* | Simplify umbra calculationChris Craik2014-01-311-18/+8
| | | | | | | | | | | | Reuse pre-computed values Change-Id: Ia7725be0ec3ac58af477fcb8de375f5faa05abf4
* | Merge close vertices in a better way.ztenghui2014-01-291-22/+166
|/ | | | | | And add more verification code for testing purpose. Change-Id: I5bc4f69e6582c02fd03106af9a98abd05a6755b7
* Calculate and show the shadow from a spot light.ztenghui2014-01-101-0/+839
Change-Id: Ia558852e8cde5d33866b22875eb501e4c6858819