commit | cf371bb41b4a0591347a076ce7d83336d4bbc6fb | [log] [tgz] |
---|---|---|
author | jvanverth <jvanverth@google.com> | Thu Mar 10 11:10:43 2016 -0800 |
committer | Commit bot <commit-bot@chromium.org> | Thu Mar 10 11:10:43 2016 -0800 |
tree | cd0e34686433786ab2a759ddf619f86faa718931 | |
parent | 4ba051cbcfbd379714250b1fe463c1610e7df04c [diff] |
Use correct gradient calculation for rotated distance fields. For all uniform scaled matrices, we were using the y coordinate of the y-direction gradient of the v texel space coordinate to scale the distance values. The problem is, if you rotate by 90 degrees this value becomes 0. The correct answer is to take the length of the y-direction gradient. BUG=skia:4864 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1776383002 Review URL: https://codereview.chromium.org/1776383002