summaryrefslogtreecommitdiff
path: root/scripts/cameraHandleResize.lua
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2023-05-09 20:21:25 -0500
committersanine <sanine.not@pm.me>2023-05-09 20:21:25 -0500
commit26bfc10ad0e8a355e9b02946dd31642f49a6ec60 (patch)
tree2c2a92cf81b680f6fb3c705059f15801d9f0224c /scripts/cameraHandleResize.lua
parent78d8efa4ac61bc7fd4d1e5bfb41193e9dece5c03 (diff)
fix camera resizing and move all scripts into separate files
Diffstat (limited to 'scripts/cameraHandleResize.lua')
-rw-r--r--scripts/cameraHandleResize.lua1
1 files changed, 1 insertions, 0 deletions
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