DescriptionUse 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
Committed: https://skia.googlesource.com/skia/+/cf371bb41b4a0591347a076ce7d83336d4bbc6fb
Patch Set 1 #Patch Set 2 : Fix android error #
Messages
Total messages: 13 (7 generated)
|