Index: Source/platform/graphics/cpu/arm/filters/FELightingNEON.h |
diff --git a/Source/platform/graphics/cpu/arm/filters/FELightingNEON.h b/Source/platform/graphics/cpu/arm/filters/FELightingNEON.h |
index 69939a582a45979950f91ce505605e76da32cf19..828fcf3859f9454428b49e474cbc8254942b8e14 100644 |
--- a/Source/platform/graphics/cpu/arm/filters/FELightingNEON.h |
+++ b/Source/platform/graphics/cpu/arm/filters/FELightingNEON.h |
@@ -151,6 +151,12 @@ inline void FELighting::platformApplyNeon(LightingData& data, LightSource::Paint |
floatArguments.padding2 = 1; |
} |
+ floatArguments.lightX *= data.worldScale.x(); |
+ floatArguments.lightY *= data.worldScale.y(); |
+ floatArguments.lightZ *= data.worldScale.z(); |
+ floatArguments.lightX -= data.originOffset.width(); |
+ floatArguments.lightY -= data.originOffset.height(); |
+ |
// Set lighting arguments. |
floatArguments.surfaceScale = data.surfaceScale; |
floatArguments.minusSurfaceScaleDividedByFour = -data.surfaceScale / 4; |