aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/utils/SkShadowUtils.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/utils/SkShadowUtils.cpp b/src/utils/SkShadowUtils.cpp
index 159b2e7859..c6102a908d 100644
--- a/src/utils/SkShadowUtils.cpp
+++ b/src/utils/SkShadowUtils.cpp
@@ -56,11 +56,12 @@ private:
};
static inline float eval_gaussian(float x) {
- x = 1 - x;
-// return sk_float_exp(-x * x * 4) - 0.018f;
- return 1 + x*(-0.209218561649322509765625f +
- x*(-4.692357540130615234375f +
- x*(6.168495655059814453125f + x*(-2.2666122913360595703125f))));
+ // return sk_float_exp(-x * x * 4) - 0.018f;
+
+ return 0.00030726194381713867f +
+ x*(0.15489584207534790039f +
+ x*(0.21345567703247070312f +
+ (2.89795351028442382812f - 2.26661229133605957031f*x)*x));
}
static void build_table() {