Searched refs:lightZ (Results 1 – 2 of 2) sorted by relevance
/external/skqp/src/core/ |
D | SkDrawShadowInfo.h | 52 inline SkScalar SpotBlurRadius(SkScalar occluderZ, SkScalar lightZ, SkScalar lightRadius) { in SpotBlurRadius() argument 53 return lightRadius*divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in SpotBlurRadius() 56 inline void GetSpotParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, SkScalar lightZ, in GetSpotParams() argument 59 SkScalar zRatio = divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in GetSpotParams() 61 *scale = divide_and_pin(lightZ, lightZ - occluderZ, 1.0f, 1.95f); in GetSpotParams()
|
/external/skia/src/core/ |
D | SkDrawShadowInfo.h | 52 inline SkScalar SpotBlurRadius(SkScalar occluderZ, SkScalar lightZ, SkScalar lightRadius) { in SpotBlurRadius() argument 53 return lightRadius*divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in SpotBlurRadius() 56 inline void GetSpotParams(SkScalar occluderZ, SkScalar lightX, SkScalar lightY, SkScalar lightZ, in GetSpotParams() argument 59 SkScalar zRatio = divide_and_pin(occluderZ, lightZ - occluderZ, 0.0f, 0.95f); in GetSpotParams() 61 *scale = divide_and_pin(lightZ, lightZ - occluderZ, 1.0f, 1.95f); in GetSpotParams()
|