From 8c1ab4c5756ac43d52bc8773f5e72dde90f79e77 Mon Sep 17 00:00:00 2001 From: Joris Date: Tue, 5 Jul 2022 22:11:00 +0200 Subject: WIP --- src/main.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main.ts') diff --git a/src/main.ts b/src/main.ts index 53bc487..c235929 100644 --- a/src/main.ts +++ b/src/main.ts @@ -9,3 +9,10 @@ function loop(timestamp: number) { } window.requestAnimationFrame(loop) + +window.onresize = () => Scene.resize( + scene, + { width: window.innerWidth, + height: window.innerHeight + } +) -- cgit v1.2.3