From f5b8a179123ccfc11888d2218ba7322ecdce8c44 Mon Sep 17 00:00:00 2001 From: Damian Tarnawski Date: Wed, 10 Apr 2024 11:14:06 +0200 Subject: [PATCH] Improve camera scale --- example/lighting.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/lighting.odin b/example/lighting.odin index df32ff5..0017120 100644 --- a/example/lighting.odin +++ b/example/lighting.odin @@ -164,7 +164,7 @@ lighting_frame :: proc(delta: f32) { gl.Clear(gl.COLOR_BUFFER_BIT | gl.DEPTH_BUFFER_BIT) camera_mat: Mat4 = 1 - camera_mat *= mat4_translate({0, 0, 800 - 700 * (scale/1.2)}) + camera_mat *= mat4_translate({0, 0, 800 - 800 * scale}) camera_mat = glm.inverse_mat4(camera_mat) view_mat := glm.mat4PerspectiveInfinite(