Home
last modified time | relevance | path

Searched refs:zRatio (Results 1 – 3 of 3) sorted by relevance

/external/skia/src/utils/
DSkShadowUtils.cpp586 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()
DSkShadowTessellator.cpp759 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/
DGrRenderTargetContext.cpp1060 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()