Searched refs:zRatio (Results 1 – 4 of 4) sorted by relevance
59 SkScalar zRatio = divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in GetSpotParams() local60 *blurRadius = lightRadius*zRatio; in GetSpotParams()62 *translate = SkVector::Make(-zRatio * lightX, -zRatio * lightY); in GetSpotParams()
64 SkScalar zRatio = pts3D[i].fZ / dz; in GetSpotShadowTransform() local65 pts3D[i].fX -= (lightPos.fX - pts3D[i].fX)*zRatio; in GetSpotShadowTransform()66 pts3D[i].fY -= (lightPos.fY - pts3D[i].fY)*zRatio; in GetSpotShadowTransform()