Searched refs:zRatio (Results 1 – 3 of 3) sorted by relevance
/external/skia/src/utils/ |
D | SkShadowUtils.cpp | 586 float zRatio = SkTPin(occluderHeight / (devLightPos.fZ - occluderHeight), 0.0f, 0.95f); in drawShadow() local 587 SkScalar radius = lightRadius * zRatio; in drawShadow() 594 factory.fOffset = SkVector::Make(zRatio * (center.fX - devLightPos.fX), in drawShadow() 595 zRatio * (center.fY - devLightPos.fY)); in drawShadow()
|
D | SkShadowTessellator.cpp | 759 float zRatio = SkTPin(z / (fLightZ - z), 0.0f, 0.95f); in offset() local 760 return fLightRadius*zRatio; in offset() 806 float zRatio = SkTPin(occluderHeight / (fLightZ - occluderHeight), 0.0f, 0.95f); in SkSpotShadowTessellator() local 807 SkScalar radius = lightRadius * zRatio; in SkSpotShadowTessellator() 816 SkVector translate = SkVector::Make(-zRatio * lightPos.fX, -zRatio * lightPos.fY); in SkSpotShadowTessellator()
|
/external/skia/src/gpu/ |
D | GrRenderTargetContext.cpp | 1060 float zRatio = SkTPin(occluderHeight / (devLightPos.fZ - occluderHeight), 0.0f, 0.95f); in drawFastShadow() local 1062 SkScalar devSpaceSpotBlur = 2.0f * rec.fLightRadius * zRatio; in drawFastShadow() 1068 SkPoint spotOffset = SkPoint::Make(zRatio*(-devLightPos.fX), zRatio*(-devLightPos.fY)); in drawFastShadow()
|