From c0d7fcbc6ca51fbe75e3597ae179bd056df9916d Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Thu, 8 Feb 2024 07:53:18 -0800 Subject: Formatting. --- include/math/mat4.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/math/mat4.h b/include/math/mat4.h index f3601b6..bbe1a20 100644 --- a/include/math/mat4.h +++ b/include/math/mat4.h @@ -311,9 +311,13 @@ static inline mat4 mat4_ortho(R left, R right, R bottom, R top, R near, R far) { const R tx = -(right + left) / (right - left); const R ty = -(top + bottom) / (top - bottom); const R tz = -(far + near) / (far - near); + // clang-format off return mat4_make( - 2 / (right - left), 0, 0, tx, 0, 2 / (top - bottom), 0, ty, 0, 0, - -2 / (far - near), tz, 0, 0, 0, 1); + 2 / (right - left), 0, 0, tx, + 0, 2 / (top - bottom), 0, ty, + 0, 0, -2 / (far - near), tz, + 0, 0, 0, 1); + // clang-format on } /// Create a perspective projection matrix. -- cgit v1.2.3