Skip to content

Commit

Permalink
Merge pull request #45 from rainyt/patch-2
Browse files Browse the repository at this point in the history
Fix OrthographicLens.unproject
  • Loading branch information
rainyt authored Nov 17, 2020
2 parents d8413e5 + 05d9708 commit e4b8ff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions away3d/cameras/lenses/OrthographicLens.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -141,4 +141,4 @@ class OrthographicLens extends LensBase

_matrixInvalid = false;
}
}
}

0 comments on commit e4b8ff5

Please sign in to comment.