MCPcopy Create free account
hub / github.com/SuboptimalEng/three-js-tutorials / onWindowResize

Method onWindowResize

14-tween-js/src/lib/SceneInit.js:96–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94 }
95
96 onWindowResize() {
97 this.camera.aspect = window.innerWidth / window.innerHeight;
98 this.camera.updateProjectionMatrix();
99 this.renderer.setSize(window.innerWidth, window.innerHeight);
100 }
101}

Callers 1

initializeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected