Searched refs:devLightPos (Results 1 – 2 of 2) sorted by relevance
/external/skia/src/utils/ |
D | SkShadowUtils.cpp | 484 const SkPoint3& devLightPos, SkScalar lightRadius, in DrawShadow() argument 491 SkPoint pt = inverse.mapXY(devLightPos.fX, devLightPos.fY); in DrawShadow() 495 rec.fLightPos = { pt.fX, pt.fY, devLightPos.fZ }; in DrawShadow() 525 SkPoint3 devLightPos = map(viewMatrix, rec.fLightPos); in drawShadow() local 572 devLightPos, lightRadius, in drawShadow() 586 float zRatio = SkTPin(occluderHeight / (devLightPos.fZ - occluderHeight), 0.0f, 0.95f); in drawShadow() 590 SkScalar scale = devLightPos.fZ / (devLightPos.fZ - occluderHeight); in drawShadow() 594 factory.fOffset = SkVector::Make(zRatio * (center.fX - devLightPos.fX), in drawShadow() 595 zRatio * (center.fY - devLightPos.fY)); in drawShadow() 597 factory.fDevLightPos = devLightPos; in drawShadow()
|
/external/skia/src/gpu/ |
D | GrRenderTargetContext.cpp | 1001 SkPoint3 devLightPos = map(viewMatrix, rec.fLightPos); in drawFastShadow() local 1060 float zRatio = SkTPin(occluderHeight / (devLightPos.fZ - occluderHeight), 0.0f, 0.95f); in drawFastShadow() 1067 const SkScalar spotScale = devLightPos.fZ / (devLightPos.fZ - occluderHeight); in drawFastShadow() 1068 SkPoint spotOffset = SkPoint::Make(zRatio*(-devLightPos.fX), zRatio*(-devLightPos.fY)); in drawFastShadow()
|