From 26bfc10ad0e8a355e9b02946dd31642f49a6ec60 Mon Sep 17 00:00:00 2001 From: sanine Date: Tue, 9 May 2023 20:21:25 -0500 Subject: fix camera resizing and move all scripts into separate files --- scripts/cameraHandleResize.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts/cameraHandleResize.lua') diff --git a/scripts/cameraHandleResize.lua b/scripts/cameraHandleResize.lua index 7d1713d..97974f5 100644 --- a/scripts/cameraHandleResize.lua +++ b/scripts/cameraHandleResize.lua @@ -1,6 +1,7 @@ return function(entities, id, data) local camera = entities:getComponent(id, "camera") if camera then + print("resize camera!") camera.projection:perspectiveResize(data.width/data.height) end end -- cgit v1.2.1