Searched refs:rayDist (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/libs/hwui/
H A DSpotShadow.h42 static void smoothPolygon(int level, int rays, float* rayDist);
H A DSpotShadow.cpp627 * @param rayDist (In and Out) The distance for each ray.
630 void SpotShadow::smoothPolygon(int level, int rays, float* rayDist) { argument
633 float p1 = rayDist[(rays - 1 + i) % rays];
634 float p2 = rayDist[i];
635 float p3 = rayDist[(i + 1) % rays];
636 rayDist[i] = (p1 + p2 * 2 + p3) / 4;

Completed in 74 milliseconds