dont respond to resizes

This commit is contained in:
Himadri Bhattacharjee
2025-01-20 21:33:32 +05:30
parent 5ccb33e33c
commit 96053fbcc7

View File

@@ -370,15 +370,6 @@ void main() {
renderer.setAnimationLoop(animate);
window.addEventListener('resize', function() {
width = window.innerWidth
height = window.innerHeight
camera.aspect = width / height;
camera.updateProjectionMatrix();
renderer.setSize(width, height);
init = true;
});
orbit.addEventListener('change', function() {
init = true;
})