diff --git a/index.html b/index.html index 9eedb51..acecda1 100644 --- a/index.html +++ b/index.html @@ -371,6 +371,11 @@

Examples

const model = await ModelLoader.loadModelUrl(url); _setLocalModel(model); })(); + +window.addEventListener('resize', e => { + camera.aspect = window.innerWidth / window.innerHeight; + camera.updateProjectionMatrix(); +});