libs/hwui/AmbientShadow.cpp
0 → 100644
+306
−0
libs/hwui/AmbientShadow.h
0 → 100644
+57
−0
+2
−0
+2
−2
+4
−4
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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