commit | 55bfb4e728fe1db619af5d2c287f4abe711b3343 | [log] [tgz] |
---|---|---|
author | ztenghui <ztenghui@google.com> | Tue Dec 03 10:38:55 2013 -0800 |
committer | ztenghui <ztenghui@google.com> | Fri Dec 13 17:25:47 2013 -0800 |
tree | 3b9c9eb0902fdb0f8991259a04c342f89f65bcaa | |
parent | d08eadd287991ec18eafe620b24e2b1bf0ce1f2d [diff] |
Calculate and show Ambient shadow. Basically we compute the shadow as a strip of triangles, whose alpha value is the strength of the shadow. We use the normal to extend the geometry. And we use static function and try to avoid new/malloc in the computation. Change-Id: I382286f1cad351bd5ff983f76f446c075819dcaf