Skip to content

Commit

Permalink
fix ortho camera translation
Browse files Browse the repository at this point in the history
  • Loading branch information
szabolcsdombi committed Dec 12, 2022
1 parent c5d6291 commit 579bc75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zengl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2465,7 +2465,7 @@ PyObject * meth_camera(PyObject * self, PyObject * args, PyObject * kwargs) {
(float)(s.x / r2), (float)(u.x / r1), (float)(r3 * f.x), 0.0f,
(float)(s.y / r2), (float)(u.y / r1), (float)(r3 * f.y), 0.0f,
(float)(s.z / r2), (float)(u.z / r1), (float)(r3 * f.z), 0.0f,
0.0f, 0.0f, (float)(r3 * t.z - r4), 1.0f,
(float)(t.x / r2), (float)(t.y / r1), (float)(r3 * t.z - r4), 1.0f,
};

return PyBytes_FromStringAndSize((char *)res, 64);
Expand Down

0 comments on commit 579bc75

Please sign in to comment.