Lines Matching refs:lightCenter
340 * @param lightCenter the center of the light.
344 void SpotShadow::computeLightPolygon(int points, const Vector3& lightCenter,
349 ret[i].x = cosf(angle) * size + lightCenter.x;
350 ret[i].y = sinf(angle) * size + lightCenter.y;
351 ret[i].z = lightCenter.z;
359 * @param lightCenter The center of light.
365 const Vector3& lightCenter, const Vector3& polyVertex) {
366 float lightToPolyZ = lightCenter.z - polyVertex.z;
374 outline.x = polyVertex.x - ratioZ * (lightCenter.x - polyVertex.x);
375 outline.y = polyVertex.y - ratioZ * (lightCenter.y - polyVertex.y);
383 * @param lightCenter the center of the light
390 void SpotShadow::createSpotShadow(bool isCasterOpaque, const Vector3& lightCenter,
393 if (CC_UNLIKELY(lightCenter.z <= 0)) {
421 projectCasterToOutline(outlineData[polyLength - 1].position, lightCenter,
430 lightCenter, poly[i]);
440 projectCasterToOutline(outlineCentroid, lightCenter, polyCentroid);