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

/frameworks/base/libs/hwui/
H A DSpotShadow.h43 static void smoothPolygon(int level, int rays, float* rayDist);
H A DSpotShadow.cpp604 * @param rayDist (In and Out) The distance for each ray.
607 void SpotShadow::smoothPolygon(int level, int rays, float* rayDist) { argument
610 float p1 = rayDist[(rays - 1 + i) % rays];
611 float p2 = rayDist[i];
612 float p3 = rayDist[(i + 1) % rays];
613 rayDist[i] = (p1 + p2 * 2 + p3) / 4;

Completed in 739 milliseconds