From 274cf0181eda7619cf5033b8682fdb179b5e4b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Vondr=C3=A1=C5=A1ek?= Date: Tue, 25 Apr 2017 19:32:04 +0200 Subject: [PATCH] fixed a bug in Orthographic matrix. --- Sparky-core/src/sp/maths/mat4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sparky-core/src/sp/maths/mat4.cpp b/Sparky-core/src/sp/maths/mat4.cpp index 021d6eb7..2606a8cd 100644 --- a/Sparky-core/src/sp/maths/mat4.cpp +++ b/Sparky-core/src/sp/maths/mat4.cpp @@ -238,7 +238,7 @@ namespace sp { namespace maths { result.elements[3 + 0 * 4] = (left + right) / (left - right); result.elements[3 + 1 * 4] = (bottom + top) / (bottom - top); - result.elements[3 + 2 * 4] = (far + near) / (far - near); + result.elements[3 + 2 * 4] = (far + near) / (near - far); return result; }