提交 98063f9d 编写于 作者: J Jason Simmons 提交者: GitHub

Improve the shadow drawing parameters (#3499)

See https://github.com/flutter/flutter/issues/8929
上级 9e1891c2
......@@ -78,10 +78,10 @@ void PhysicalModelLayer::DrawShadow(SkCanvas* canvas, const SkPath& path,
SkShadowFlags::kTransparentOccluder_ShadowFlag :
SkShadowFlags::kNone_ShadowFlag;
SkShadowUtils::DrawShadow(canvas, path,
elevation * 4,
SkPoint3::Make(0.0f, -700.0f, 2800.0f),
2800.0f,
0.25f, 0.25f,
elevation * 2,
SkPoint3::Make(0.0f, 0.0f, 600.0f),
800.0f,
0.2f, 0.2f,
color,
flags);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册