From 05d9708ad23b465038b7f2aec79896062c9dd5aa Mon Sep 17 00:00:00 2001 From: rainyt <939029835@qq.com> Date: Mon, 16 Nov 2020 13:43:40 +0800 Subject: [PATCH] Fix OrthographicLens.unproject In file: /src/away3d/cameras/lenses/OrthographicLens.hs In function unproject Line: 57 v.y = nX + translation.y; Should be: v.y = -nY + translation.y; https://github.com/away3d/away3d-core-fp11/issues/720 --- away3d/cameras/lenses/OrthographicLens.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/away3d/cameras/lenses/OrthographicLens.hx b/away3d/cameras/lenses/OrthographicLens.hx index b4c99adc..75ba0878 100644 --- a/away3d/cameras/lenses/OrthographicLens.hx +++ b/away3d/cameras/lenses/OrthographicLens.hx @@ -58,7 +58,7 @@ class OrthographicLens extends LensBase var translation:Vector3D = Matrix3DUtils.CALCULATION_VECTOR3D; matrix.copyColumnTo(3, translation); v.x = nX + translation.x; - v.y = nX + translation.y; + v.y = -nY + translation.y; v.z = sZ; v.w = 1; @@ -141,4 +141,4 @@ class OrthographicLens extends LensBase _matrixInvalid = false; } -} \ No newline at end of file +}