Make sure all examples resize when the window is resized (#155)

This commit is contained in:
Noeri Huisman
2025-09-15 23:38:16 +02:00
committed by GitHub
parent 8f340d1f78
commit 882def6eb7
19 changed files with 129 additions and 17 deletions
+1 -1
View File
@@ -62,7 +62,7 @@
function handleResize() {
const width = window.innerWidth;
const height = window.innerHeight;
renderer.setSize(width, height, false);
renderer.setSize(width, height);
camera.aspect = width / height;
camera.updateProjectionMatrix();
}