From 911d0a522bfb4d027dd8796676d9cba89fb9121e Mon Sep 17 00:00:00 2001 From: Sergei Sergeev Date: Sun, 11 Jan 2026 20:47:32 +0300 Subject: [PATCH] Fix perspective camera In a perspective projection matrix, the bottom-right element must be 0 to ensure correct perspective division. --- src/lime/math/Matrix4.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lime/math/Matrix4.hx b/src/lime/math/Matrix4.hx index 4c70f38066..ee479fbb78 100644 --- a/src/lime/math/Matrix4.hx +++ b/src/lime/math/Matrix4.hx @@ -416,7 +416,7 @@ abstract Matrix4(Float32Array) from Float32Array to Float32Array this[12] = 0; this[13] = 0; this[14] = -2 * zFar * zNear / (zFar - zNear); - this[15] = 1; + this[15] = 0; } /**