Searched refs:kHeightFactor (Results 1 – 2 of 2) sorted by relevance
347 static constexpr auto kHeightFactor = 1.0f / 128.0f; member in SkAmbientShadowTessellator353 return z * kHeightFactor * kGeomFactor; in offset()356 SkScalar umbraAlpha = SkScalarInvert((1.0f + SkTMax(z*kHeightFactor, 0.0f))); in umbraColor()376 SkScalar umbraAlpha = SkScalarInvert((1.0f + SkTMax(occluderHeight*kHeightFactor, 0.0f))); in SkAmbientShadowTessellator()
1015 static constexpr float kHeightFactor = 1.0f / 128.0f; in drawFastShadow() local1018 SkScalar devSpaceInsetWidth = occluderHeight * kHeightFactor * kGeomFactor; in drawFastShadow()1019 const float umbraAlpha = (1.0f + SkTMax(occluderHeight * kHeightFactor, 0.0f)); in drawFastShadow()