From b11a2f9e30209a1078855fdcc7d2ce81f0412d7d Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Tue, 6 Jan 2026 01:20:00 +0000 Subject: [PATCH] fix(skybox): Adjust skybox scale calculation based on room dimensions --- scripts/cube_logic.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/cube_logic.lua b/scripts/cube_logic.lua index a6e2060..62abc57 100644 --- a/scripts/cube_logic.lua +++ b/scripts/cube_logic.lua @@ -688,7 +688,8 @@ local function create_static_cube(position, scale, color, shader_key) end local function create_skybox() - local skybox_scale = camera.far * 0.85 + local room_extent = room.half_size + room.wall_thickness + local skybox_scale = room_extent * 2.5 local function compute_model_matrix() local translation = math3d.translation(camera.position[1], camera.position[2], camera.position[3]) local scaling = scale_matrix(skybox_scale, skybox_scale, skybox_scale)