MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / onWindowResize

Function onWindowResize

assets/js/PanoramCube.js:92–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

90}
91
92function onWindowResize() {
93 camera.aspect = window.innerWidth / window.innerHeight;
94 camera.updateProjectionMatrix();
95
96 renderer.setSize(window.innerWidth, window.innerHeight);
97}
98
99function animate() {
100 requestAnimationFrame(animate);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected