Index: src/core/SkLightingShader.cpp |
diff --git a/src/core/SkLightingShader.cpp b/src/core/SkLightingShader.cpp |
index cb25944a01fc9e4e9dfff5442a965a04c0ffecbf..d011712feac5130fdcb67a3b61878d7c575e15a4 100644 |
--- a/src/core/SkLightingShader.cpp |
+++ b/src/core/SkLightingShader.cpp |
@@ -510,8 +510,8 @@ void SkLightingShaderImpl::LightingShaderContext::shadeSpan(int x, int y, |
xformedNorm.fX = lightShader.fInvNormRotation.fX * norm.fX + |
lightShader.fInvNormRotation.fY * norm.fY; |
- xformedNorm.fY = lightShader.fInvNormRotation.fX * norm.fX - |
- lightShader.fInvNormRotation.fY * norm.fY; |
+ xformedNorm.fY = -lightShader.fInvNormRotation.fY * norm.fX + |
+ lightShader.fInvNormRotation.fX * norm.fY; |
xformedNorm.fZ = norm.fZ; |
SkColor diffColor = SkUnPreMultiply::PMColorToColor(tmpColor2[i]); |